W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2001

choice for attributes?

From: Urs Muntwyler <umuntwyler@a-f.ch>
Date: Fri, 9 Nov 2001 10:02:46 -0500 (EST)
To: xmlschema-dev@w3.org
Message-Id: <6874D24E-D521-11D5-8988-0050E4662037@a-f.ch>
hi there,

         How do I validate an element {If} which must have exactly ONE 
attribute out of a set of two attributes {defined,notDefined}:

<If defined="..."> 	OR <If notDefined=".."> (both valid)
BUT NOT <If defined="..." notDefined="..."> AND NOT <If> (both not valid)

I would need anything like <xs:choice>, but this does only exist for 
elements, not for attributes.


Many thanks in advance,

Urs.

Urs Muntwyler
A&F Computersysteme AG, Switzerland
umuntwyler@a-f.ch
Received on Friday, 9 November 2001 10:35:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:35 GMT