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

( A or B ) or both

From: Frans Englich <frans.englich@telia.com>
Date: Mon, 8 Nov 2004 10:14:06 +0000
To: xmlschema-dev@w3.org
Message-Id: <200411081014.06682.frans.englich@telia.com>
( A or B ) or both


Hello,

For an XML Schema complexType, I would like to specify such that it must 
contain either of the elements A or B, but it /may/ also contain them 
both(but at a minimum must A or B be there). In other words, I'm talking 
about a logical OR. 

How is this done? If i put minOccurs="0" on A and B, that allows none of them 
to be there. Somehow must the relation between the two be expressed.

BTW, for another Schema of mine, I need to allow XHTML markup in some 
elements, in a way possible to validate. Should I simply reference the 
"block" element group in XHTML 1.0's XSD?


Cheers,

		Frans
Received on Monday, 8 November 2004 10:07:09 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.