RE: mixing orderer and unordered elements

How about:

	<xs:element name="Root">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Seq1"/>
				<xs:element name="Seq2"/>
				<xs:sequence>
					<xs:choice maxOccurs="unbounded">
						<xs:element
name="Unordered1"/>
						<xs:element
name="Unordered2"/>
					</xs:choice>
				</xs:sequence>
			</xs:sequence>
		</xs:complexType>
	</xs:element>


Mark Feblowitz                                   	
XML Architect
       [t]   617.715.7231                                     	
       [f]   617.495.0188
Frictionless Commerce Incorporated 	
       [e]  mfeblowitz@frictionless.com
       [w] http://www.frictionless.com
       [m] 400 Technology Square, 9th Floor
             Cambridge, MA 02139 
Open Applications Group Incorporated
       [e]  mfeblowitz@openapplications.org
       [w] http://www.openapplications.org 

 -----Original Message-----
From: 	Torsten Curdt [mailto:tcurdt@dff.st] 
Sent:	Tuesday, June 11, 2002 7:18 AM
To:	xmlschema-dev@w3.org
Subject:	mixing orderer and unordered elements


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 11:14:43 UTC