W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2001

Is there still the DTD's order limitation in Schema ?

From: olivier loopuyt <olivier.loopuyt@httv.fr>
Date: Wed, 27 Jun 2001 07:00:55 -0400 (EDT)
Message-ID: <003801c0fef7$e6a19420$0609600a@bdfi>
To: <xmlschema-dev@w3.org>

    Hi, 
    I would like to define an Element which has children 
with no order constraints but with occurence constraints.
    For example it's something like that but without the order constraint
of the "<xsd:sequence>" : 

<xsd:complexType name="root">
    <xsd:sequence>
      <xsd:element name="elem1" type="xsd:string" minOccurs="2" maxOccurs="5"/>
      <xsd:element name="elem2" type="xsd:string" minOccurs="1" maxOccurs="7"/>
      <xsd:element name="elem3" type="xsd:string"minOccurs="0" maxOccurs="23"/>
    </xsd:sequence>
</xsd:complexType>


    This order constraint was one of the main constraint (for me) of DTD. This 
constraint was avoided by Microsoft with his XML-Data Reduced (XDR) 
(the attribut "order") but seems to be still there (I'm not aware of all the schema 
possibilities yet) with the W3C recommendation... 
    Am I wrong or is there a reason of this limitation ?
Received on Thursday, 28 June 2001 12:17:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:21 GMT