[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Reasons for using XSLT to validate XML instances?
We use XSLT and XQuery (as well as XSD) to validate the XSLT and XQuery test suites. There may be other ways of doing it, but XSLT/XQuery are by far the easiest way of validating a collection of documents, e.g. checking that every test name is unique within a collection of several hundred test sets, or that every benvironment nameb referenced from a test case actually exists somewhere in the test suite, typically in a different XML document. We also use XSLT and XQuery to control XSD validation of the document set: for example an XSLT script can check metadata to see what schema a particular instance document is supposed to be valid against, and invoke XSD validation accordingly. This works much better in 3.0 of course, because you really need try/catch. Michael Kay Saxonica > On 19 Jun 2015, at 16:50, Costello, Roger L. costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi Folks, > > XML Schema can validate XML instances. > > Schematron can validate XML instances. > > Is there ever a situation where it would be preferable to use XSLT to validate XML instances? > > /Roger
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|