W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2002

reference to root element

From: Rosa Macias <rmacias@ll.iac.es>
Date: Fri, 5 Apr 2002 11:51:42 -0500 (EST)
To: <xmlschema-dev@w3.org>
Message-ID: <003301c1dcc2$59c4f250$2b1b48a1@gtc.iac.es>
Hello all,

I have this schema where the "Chapter" element inside "Book" refers back to
"Book".
The schema seems to be correct but, how can I have an instance where the
"Book" element of "Chapter" always refers back to its root element itself?


<xs:element name="Book">
<xs:complexType>
<xs:sequence>
<xs:element ref="Chapter"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Chapter">
<xs:element ref="Book"></xs:element>
</xs:element>
</xs:schema>

Anyone knows?

Rosa
Received on Monday, 15 April 2002 06:23:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:30 GMT