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