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

mixing orderer and unordered elements

From: Torsten Curdt <tcurdt@dff.st>
Date: Tue, 11 Jun 2002 13:17:40 +0200
To: xmlschema-dev@w3.org
Message-Id: <200206111317.41002.tcurdt@dff.st>

I am trying to have a mixture of ordered and unordered elements:

<root>
  <seq1/>
  <seq2/>
  <unordered2/>
  <unordered1/>
</root>

So what IMHO would make sense would be:

  <xs:element name="root">
    <xs:complexType>
      <xs:sequence>
        <xs:sequence>
          <xs:element name="seq1"/>
          <xs:element name="seq2"/>
        </xs:sequence>
        <xs:all>
          <xs:element name="unordered1"/>
          <xs:element name="unordered2"/>
        </xs:all>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

But obviously this does not work.
What is the proposed way to express such a schema?

Any help appreciated!
--
Torsten
Received on Tuesday, 11 June 2002 07:15:09 GMT

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