Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: conditional processing of xsd [Thread Next] RE: conditional processing of xsdTo: "'Swayam Vemuri -X \(swvemuri - WIPRO at Cisco\)'" <swvemuri@-----.---> Date: 3/10/2007 11:11:00 AM > 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
