[
https://issues.jboss.org/browse/TEIIDDES-2107?page=com.atlassian.jira.plu...
]
Lucie Fabrikova edited comment on TEIIDDES-2107 at 4/8/14 10:44 AM:
--------------------------------------------------------------------
The problem arises there: org.teiid.designer.metamodels.xml.XmlDocumentBuilderImpl.java
...
final String uri = (String)next.getValue();
[line 1715]
if (!schemaUris.contains(uri)) {
final XmlNamespace ns = docFactory.createXmlNamespace();
if ("this".equals(prefix) || prefix == null ||
prefix.trim().length() == 0) ns.setPrefix(XmlDocumentUtil.createXmlPrefixFromUri(uri));
//$NON-NLS-1$
else ns.setPrefix(prefix);
ns.setUri(uri);
ns.setElement(root);
schemaUris.add(uri);
this.uriToNamespaceMap.put(uri, ns);
}
was (Author: lfabriko):
The problem arises there:
org.teiid.designer.metamodels.xml.XmlDocumentBuilderImpl.java
line 1715
if (!schemaUris.contains(uri)) {
final XmlNamespace ns = docFactory.createXmlNamespace();
if ("this".equals(prefix) || prefix == null ||
prefix.trim().length() == 0) ns.setPrefix(XmlDocumentUtil.createXmlPrefixFromUri(uri));
//$NON-NLS-1$
else ns.setPrefix(prefix);
ns.setUri(uri);
ns.setElement(root);
schemaUris.add(uri);
this.uriToNamespaceMap.put(uri, ns);
}
Virtual documents in XML view model build from XSD have incorrect
namespaces
----------------------------------------------------------------------------
Key: TEIIDDES-2107
URL:
https://issues.jboss.org/browse/TEIIDDES-2107
Project: Teiid Designer
Issue Type: Bug
Affects Versions: 8.3.1
Reporter: Lucie Fabrikova
Attachments: UpdatesSchema.xsd, xmlviewNS.png
When creating new metadata model (XML, View model, Build XML documents from XML schema),
namespaces are set correctly only for one of the virtual documents. If you choose multiple
virtual documents from schema root elements table, the others would have namespace set to
null.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira