W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2007

schema all group question

From: Petetsky, Alexander <petetsky@aware.com>
Date: Mon, 5 Mar 2007 14:17:53 -0500
Message-ID: <A510FC6F6EC01246A3E8DB00221C43328683D9@aware.com>
To: <xmlschema-dev@w3.org>

Hi all,
I have a problem I am trying to find a solution/work around for.
One of the elements in my schema by design must consist of either one child elements or a group of  elements with absolutely no restriction on the order within this group. So, ideally it would look something like the following (though I understand it is invalid):
<xs:complexType name="Parent">
             <xs:element name="E0" type="xs:int" minOccurs="1" maxOccurs="unbounded"/>
	 <xs:all minOccurs="0">
               <xs:element name="E1" type="xs:string" />
               <xs:element name="E2" type="xs:string" />
               <xs:element name="E3" type="xs:string" />

Any ideas?
Received on Monday, 5 March 2007 23:39:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:41 UTC