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

Re: mixing orderer and unordered elements

From: Torsten Curdt <tcurdt@dff.st>
Date: Wed, 12 Jun 2002 09:57:58 +0200
To: Mark Feblowitz <mfeblowitz@frictionless.com>, xmlschema-dev@w3.org
Message-Id: <200206120957.58237.tcurdt@dff.st>

Hi, Mark,

thanks for the suggestion but

On Tuesday 11 June 2002 17:14, Mark Feblowitz wrote:
> 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>

wouldn't that also allow:

  <Root>
     <Seq1/>
     <Seq2/>
     <Unordered2/>
     <Unordered1/>
     <Unordered2/>
  </Root>

which is not what I want...
--
Torsten
Received on Wednesday, 12 June 2002 03:55:26 GMT

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