[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Why should I put code in XSLT to check the input d
On 20/05/2010 21:59, Costello, Roger L. wrote:
Hi Folks, No, not at all!
If by XML Schema you mean XSD, then most of the time I'd rather not use it at all, ever. But even if you include Relax NG or DTD in "XML Schema" it's often preferable to not validate at run time. A grammar validator (not schematron) is usually just a binary pass/fail. That's fine if you want to reject invalid documents, but if you test for things in XSLT you can do different code paths and often make correct output out of less than perfect input. Checking the output makes sense of course, just to check the output, although it depends on the transform, some transforms are guaranteed to produce valid documents, just because the output is sufficiently regular that unless it stops due to some fatal error the result will be valid. David
|
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
|