Bug(s) in definition of <DEFINITIONS> and <INFO>?
Steve Lowe
slowe at head-cfa.harvard.edu
Tue Nov 12 05:24:58 PST 2002
I would advocate minOccurs=0 on the choice. While an empty DEFINITIONS
section is superfluous, I don't see any reason to preclude it.
Also, the verbal spec at http://www.us-vo.org/VOTable/VOTable-1-0.htm
section 3.1 is, I think, unclear on whether more than one COOSYS is
allowed. It says
"This element may contain a definition of a coordinate system, stored in
a COOSYS element..."
"There may also be one or more PARAM elements..."
So maybe there needs to be a little edit there.
Steve
Ed Shaya wrote:
>
> 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
> > ================================================================================
--
Steve Lowe
Smithsonian Astrophysical Observatory
Harvard-Smithsonian Center for Astrophysics
slowe at cfa.harvard.edu
1-617-496-1661
More information about the votable
mailing list