[JBoss JIRA] (TEIIDDES-2107) Virtual documents in XML view model build from XSD have incorrect namespaces
by Lucie Fabrikova (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2107?page=com.atlassian.jira.plu... ]
Lucie Fabrikova commented on TEIIDDES-2107:
-------------------------------------------
For the first virtual document, all namespaces are added, and correctly set as declared namespaces (line 1720: ns.setElement(root); ), for the second virtual document all ns are added, so the body of "if" is not executed, but then also the line 1720 which adds the namespaces isn't executed.
> 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: 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
10 years, 2 months
[JBoss JIRA] (TEIIDDES-2107) Virtual documents in XML view model build from XSD have incorrect namespaces
by Lucie Fabrikova (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2107?page=com.atlassian.jira.plu... ]
Lucie Fabrikova commented on TEIIDDES-2107:
-------------------------------------------
Attachment: I used UpdatesSchema.xsd and selected those schema root elements as virtual documents - BooksUpdate and ISBNInput.
The BooksUpdate has both namespaces set, but the ISBNInput has none.
> 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: 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
10 years, 2 months
[JBoss JIRA] (TEIIDDES-2107) Virtual documents in XML view model build from XSD have incorrect namespaces
by Lucie Fabrikova (JIRA)
[ https://issues.jboss.org/browse/TEIIDDES-2107?page=com.atlassian.jira.plu... ]
Lucie Fabrikova commented on TEIIDDES-2107:
-------------------------------------------
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: 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
10 years, 2 months
[JBoss JIRA] (TEIIDDES-2107) Virtual documents in XML view model build from XSD have incorrect namespaces
by Lucie Fabrikova (JIRA)
Lucie Fabrikova created TEIIDDES-2107:
-----------------------------------------
Summary: 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: 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
10 years, 2 months