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

Re: How to read Schema XSD in stylesheet XSL!

Subject: Re: How to read Schema XSD in stylesheet XSL!
From: Eliot Kimber <ekimber@xxxxxxxxxxxx>
Date: Thu, 29 Nov 2007 12:01:13 -0600
Re:  How to read Schema XSD in stylesheet XSL!
Abel Braaksma wrote:

In all honesty, all you need is an XML processor that supports Schema processing. You do not need any XSLT. But if you are determined to use XSLT, just use XSLT 2.0 with validation (available with Saxon-SA and AltovaXML, the latter free). If the content is valid, output "yes", if not,. output "no". For all that I know, you can write any stylesheet (as long as validation is on) and let it output something. If the output is nothing or an error or a different exit code, you let your calling process (i.e., a batch file or a workflow system) output "no". Or, like Wendell suggested, use the extension functions of Saxon.

Note that you don't need SaxonSA to do schema-validated XSLT processing of documents, you just need to use a parser that is both schema-aware (e.g., Xerces) and is configured to do schema validation. This requires a small bit of Java code or doing the necessary Java system property configuration to set it up.


What you need SaxonSA for is to do schema *aware* XSLT processing such that you can refer to data types and complex types defined in your schema in your XSLT templates.

Cheers,

Eliot

--
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.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.