W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

Recursion in XML Schema

From: Karuna A <a_karuna@hotmail.com>
Date: Thu, 25 Oct 2001 15:47:19
To: xmlschema-dev@w3.org
Message-ID: <F148OpiMOHsF3ZfHQ5D0000f38f@hotmail.com>
Hi:I am defining an XML schema for predicate properties. In the process, I 
have defined a global element and a global complex type associated with it. 
Now, can this complex type be referenced inside another element which is of 
this complex type itself? Here is an example:
<property> := <invariant>|<next>|<stable>
<invariant> := <predicate>|<quantification>|<property>
See how <property> has <invariant> as a child and <invariant> in turn has 
<property> as it's possible child. Is this valid?!? Will instance documents 
be valid if such recusrsion of elements occurs? Please help. Thanks

Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Received on Thursday, 25 October 2001 11:47:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:54 UTC