xsl-list
[Top] [All Lists]

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

2008-04-01 06:54:11
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>