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:40:13 UTC

[DO NOT REPLY: Bug 3473] 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.23935	Thu Sep  6 13:40:13 2001
***************
*** 59,62 ****
  	
  	<MyString>Hello</MyString>
  	<MyInt>123</MyInt>
! </name:MyElement>
--- 59,89 ----
  	
  	<MyString>Hello</MyString>
  	<MyInt>123</MyInt>
! </name:MyElement>
! 
! ------- Additional Comments From mette.hedin@commerceone.com  2001-09-06 13:40 -------
! Note that if I set the namespace of the reference to MyGroup to the target 
! namespace, no errors are reported. The starnge behavior is that the parser 
! seems to asusme that the group declaration is in a different namespace.
! 
! Note also that the XSDL primer has an example similar to this, and no namespace 
! qualification is required of the group reference:
! 
! <xsd:complexType name="PurchaseOrderType">
!  <xsd:sequence>
!   <xsd:choice>
!    <xsd:group   ref="shipAndBill"/>
!    <xsd:element name="singleUSAddress" type="USAddress"/>
!   </xsd:choice>
!   <xsd:element ref="comment" minOccurs="0"/>
!   <xsd:element name="items"  type="Items"/>
!  </xsd:sequence>
!  <xsd:attribute name="orderDate" type="xsd:date"/>
! </xsd:complexType>
! 
! <xsd:group name="shipAndBill">
!   <xsd:sequence>
!     <xsd:element name="shipTo" type="USAddress"/>
!     <xsd:element name="billTo" type="USAddress"/>
!   </xsd:sequence>
! </xsd:group>

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org