W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2006

at least one

From: Debora Vanni <debora.vanni@tvblob.com>
Date: Mon, 22 May 2006 16:10:36 +0200
To: xmlschema-dev@w3.org
Message-Id: <1148307036.2121.15.camel@localhost.localdomain>

Sorry to bother you again,
I try to look around but I can't find a solution.
I would like to know if there is some way in XSD to say that a complex
element should be composed by any but at least one element of a group(=
some) of elements.
For example:
the group is :
	<high></high>
	<medium></medium>
	<low></low>

This is CORRECT:
<filters>
	<high></high>
	<medium></medium>
	<low></low>
</filters>

This is CORRECT:
<filters>
	<high></high>
	<low></low>
</filters>

This is INCORRECT:
<filters>

</filters>
I know the maximum number of elements of the group but I don't know
which and how many they could choose. Everything it's ok but there
should be at least one!
Thank you for you help
Debora Vanni
Received on Monday, 22 May 2006 14:13:57 GMT

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