Re: Element occurence

> <!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 UTC