Sounds to me that you want choice instead of sequence or all. This will allow an unordered list of arbitrary length:
<xs:choice maxOccurs="unbounded">
<xs:element ref="COOSYS"/>
<xs:element ref="PARAM"/>
</xs:choice>
The choice takes the default minOccurs="1" because if there is a DEFINITIONS tag, there should be at least one child.
Ed
Francois Ochsenbein wrote:
>
> Thank you, Steve, for preporting the problem: in the <DEFINITIONS>
> there may exist any number of occurences of both <COOSYS> and <PARAM>
> -- the original intention was to specify that within <DEFINITIONS>
> the order is not important, e.g. that
> <DEFINITIONS>
> <COOSYS .../>
> <PARAM .../>
> <PARAM .../>
> <COOSYS .../>
> </DEFINITIONS>
> should be acceptable. The <xs:sequence> forbids this...
>
> I've made the appropriate corrections in the version at
> http://vizier.u-strasbg.fr/xml/VOTable.xsd
> (Roy should replace the current version at
> http://us-vo.org/xml/VOTable.xsd )
>
> BTW, following Markus' message, shouldn't the XML-Schema and DTD be
> referred as http://xml.ivoa.net/VOTable.xsd ?
> or some similar name ?
>
> --Francois
> ================================================================================
> Francois Ochsenbein ------ Observatoire Astronomique de Strasbourg
> 11, rue de l'Universite F-67000 STRASBOURG Phone: +33-(0)390 24 24 29
> Email: francois-at-astro.u-strasbg.fr (France) Fax: +33-(0)390 24 24 32
> ================================================================================
Received on 2002-11-12Z10:26:05