RE: One of more elements required

> 
> If I understand your requirements right, you want
> 
>    <xsd:choice minOccurs="1" maxOccurs="unbounded">
>       <xsd:element name="platform" type="platformType"/>
>       <xsd:element name="device" type="deviceType"/>
>    </xsd:choice>
> 
> Stan Kitsis

Or if you want to insist that the platform elements come before the device
elements, you have a classic problem with XSD 1.0 (easily solved in 1.1 with
assertions). In 1.0 the usual solution is to expand the content model to

device+ | (platform+, device*)

Michael Kay
http://www.saxonica.com/

Received on Wednesday, 22 October 2008 22:47:41 UTC