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

RE: conditional processing of xsd

From: Michael Kay <mike@saxonica.com>
Date: Sat, 10 Mar 2007 11:10:40 -0000
To: "'Swayam Vemuri -X \(swvemuri - WIPRO at Cisco\)'" <swvemuri@cisco.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <00a701c76304$bcfc0340$6401a8c0@turtle>
 > On second thoughts does XML Schema 1.0 does not support any form of
conditional processing of xsd at all  
 
There are two kinds of conditional processing you might be able to exploit:
 
(a) xs:choice, which allows your content model to depend on the first child
element that is found - but only on its name, not on its value. And you can
only do this with elements, not with attributes
 
(b) xsi:type, which allows your content model to depend on the value of an
xsi:type attribute in the instance document.
 
Michael Kay
http://www.saxonica.com/
 
 
Received on Saturday, 10 March 2007 11:10:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2007 11:10:58 GMT