reference to root element

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 UTC