You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/09/06 22:34:23 UTC
[DO NOT REPLY: Bug 3473] New:
Referencing group incorrectly requires namespace qualification
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3473
*** shadow/3473 Thu Sep 6 13:34:23 2001
--- shadow/3473.tmp.23881 Thu Sep 6 13:34:23 2001
***************
*** 0 ****
--- 1,62 ----
+ +============================================================================+
+ | Referencing group incorrectly requires namespace qualification |
+ +----------------------------------------------------------------------------+
+ | Bug #: 3473 Product: Xerces-J |
+ | Status: NEW Version: 1.4.3 |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: Windows NT/2K |
+ | Priority: Other Component: Core |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: mette.hedin@commerceone.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ The schema:
+
+ <?xml version='1.0'?>
+ <xsd:schema targetNamespace="http://com.commerceone/myschemas/GroupNameTest2"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:group name="MyGroup">
+ <xsd:sequence>
+ <xsd:element name="MyString" type="xsd:string"/>
+ <xsd:element name="MyInt" type="xsd:int"/>
+ </xsd:sequence>
+ </xsd:group>
+
+ <xsd:element name="MyElement" type="MyComplexType"/>
+
+ <xsd:complexType name="MyComplexType">
+ <xsd:sequence>
+ <xsd:group ref="MyGroup"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ </xsd:schema>
+
+ Results in the errors:
+
+ ERROR:Sysid[file:///C:/xalan/xerces-1_4_3/GroupNameTest2.xml]:Schema error: !!
+ Schema not found in #traverseGroupDeclFromAnotherSchema, schema uri: ,
+ groupName:MyGroup.
+ ERROR:Sysid[file:///C:/xalan/xerces-1_4_3/GroupNameTest2.xml]:Element
+ type "MyString" must be declared.
+ ERROR:Sysid[file:///C:/xalan/xerces-1_4_3/GroupNameTest2.xml]:Element
+ type "MyInt" must be declared.
+ ERROR:Sysid[file:///C:/xalan/xerces-1_4_3/GroupNameTest2.xml]:The content of
+ element type "name:MyElement" must match "EMPTY".
+
+ when the following instance is parsed:
+
+ <name:MyElement
+ xmlns:name="http://com.commerceone/myschemas/GroupNameTest2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://com.commerceone/myschemas/GroupNameTest2
+ GroupNameTest2.xsd">
+
+ <MyString>Hello</MyString>
+ <MyInt>123</MyInt>
+ </name:MyElement>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org