- From: George Cristian Bina <george@oxygenxml.com>
- Date: Mon, 08 Nov 2004 12:20:50 +0200
- To: Frans Englich <frans.englich@telia.com>
- Cc: xmlschema-dev@w3.org
Hi Frans, > 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. (a, b?) | (b, a?) > 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? I guess you can use a wildcard model here to specify any element from the XHTML namespace. Setting processContents to strict will force the validation to be applied on the XHTML content. Hope that helps, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Received on Monday, 8 November 2004 10:18:56 UTC