Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: One of more elements required [Thread Next] RE: One of more elements requiredTo: "'Stan Kitsis'" <Stan.Kitsis@---------.--->, "'Age Bosma'" Date: 10/22/2008 10:49:00 PM > > 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
