[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] XML Schema co-occurrence constraint workaround
- From: "Michael Kay" <mike@saxonica.com>
- To: "'Andrew Welch'" <andrew.j.welch@gmail.com>,<xml-dev@lists.xml.org>
- 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]