RE: conditional processing of xsd

 > 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 UTC