[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Michael Kay" <mike@s...>
  • To: "'Andrew Welch'" <andrew.j.welch@g...>,<xml-dev@l...>
  • Date: Tue, 17 Jun 2008 10:29:57 +0100

> Here's a potential workaround for the co-constraint problem 
> in XML Schema.
...
> 
> This technique is far from ideal as it involves modifying the 
> source

A refinement of this technique is to add the xsi:type attribute using a SAX
filter; you then pipe your original source into the schema validator via the
filter. Quite a few of the limitations of XML Schema 1.0 can be overcome by
validating not the original document, but a simple transformation of it.

Michael Kay
http://www.saxonica.com/



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member