[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?

Subject: Re: Reasons for using XSLT to validate XML instances?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Jun 2015 19:53:13 -0000
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.