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

Re: Element occurence

From: Morris Matsa <mmatsa@us.ibm.com>
Date: Wed, 20 Jun 2001 11:12:19 -0400
To: "Wouter Cordewiner" <wouter_cordewiner@hotmail.com>
Cc: ht@cogsci.ed.ac.uk, xmlschema-dev@w3.org
Message-ID: <OFCA7A60E7.B88ECED7-ON85256A71.0053579A@sby.ibm.com>


> <!ELEMENT result (level4*,level5*,level4*)>
>
> The level4 element is completely optional before and after level5, and
> level5 itself is also optional.
>
> Is there any way to express this without any ambiguity ?


   <xs:sequence>
    <xs:element ref="level4" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element ref="level5" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element ref="level4" minOccurs="0" maxOccurs="unbounded"/>
   </xs:sequence>
Received on Wednesday, 20 June 2001 11:14:18 GMT

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