W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2002

Choice: attribute or child element

From: Alessandro Vernet <avernet@scdi.org>
Date: Fri, 06 Dec 2002 15:15:23 -0800
Message-ID: <3DF12F8B.4000409@scdi.org>
To: xmlschema-dev@w3.org


Is there a way to write a schema to validate documents that look like: 
<a><b/></a>, or <a c="..."/> (i.e. the element "a" must have a child 
element "b" or an attribute "c", but not both)?

Received on Friday, 6 December 2002 18:17:25 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:59 UTC