[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
at least one

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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.