Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] XSLT 2.0: validate output against a Schematron Schema? RelaxNG schema? Multiple schemas?

From: "Michael Kay" <mike@------------>
To:
Date: 4/1/2008 1:54:00 PM
> 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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent