[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSLT 2.0: validate output against a Schematron Sc

Subject: RE: XSLT 2.0: validate output against a Schematron Schema? RelaxNG schema? Multiple schemas?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 1 Apr 2008 21:53:43 +0800
RE:  XSLT 2.0: validate output against a Schematron  Sc
> Thus, I would like the output document to be validated by two schemas:
> 
> 1. W3C XML Schema or Relax NG
> 
> 2. Schematron
> 
> Does the XSLT specification allow for validation against 
> multiple schemas?

No. The only validation you can control from within the stylesheet is
validation against XSD. However, you can of course pipe the output of the
stylesheet through a validator for any other constraint language. There are
many ways you can program such a pipeline - why not try one of the early
implementations of XProc?

I think you should try to organize an XML application as a pipeline of
processes, each of which does one task. It's not the role of XSLT to control
that pipeline, it belongs in the next layer up. The only reason XSLT has
support for XSD validation is that it interacts with the XSLT type system:
it enables some of the checking to be done statically rather than at
run-time.

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

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.