[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!
Hi Wiky,
Maybe I missed something in this discussion, but the core of your question seems to be about point 2: "yes" when XML input is valid against a schema an "no" when XML is not valid. 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. HTH, Cheers, -- Abel Braaksma wiky wrote: Hi All, I need urgent help on a task which is 1. to write a stylesheet XSL which will process a document XML: it will also be given a schema XSD, which will be specified by a stylesheet parameter.
|
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
|