W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2010

RE: Conditional type definition

From: Michael Kay <mike@saxonica.com>
Date: Wed, 10 Mar 2010 16:36:19 -0000
To: "'Ralph Kutschera'" <news2010@ecuapac.at>, <xmlschema-dev@w3.org>
Message-ID: <4D1DD3CAEC8F40D68DF5116746297D27@Sealion>
> 
> So there is the "anElement" and depending on its type the 
> subelements are different. Is there a way to declare this 
> behaviour with XSD?
> 

With XSD 1.1, yes - it's called Conditional Type Assignment.

With XSD 1.0, no.

Michael Kay
Saxonica
Received on Wednesday, 10 March 2010 16:36:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:19 GMT