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

What is best practice for dealing with errors in XSLT

Subject: What is best practice for dealing with errors in XSLT 1.0?
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Wed, 7 Apr 2010 10:42:55 -0400
 What is best practice for dealing with errors in XSLT
Hi Folks,

While processing an input document, my XSLT transform discovered an error.
What is the best way of dealing with that error?

One approach to dealing with errors is to sprinkle <xsl:message
terminate="yes"> elements liberally throughout the XSLT document. But the
behavior of <xsl:message terminate="yes"> varies from processor to processor.
That's not appealing.

It would be nice if the XSLT transform could  generate two result documents -
one result document contains the "ordinary" output and the other result
document contains descriptions of errors that were encountered during
processing. Alas, XSLT 1.0 does not provide the ability to generate multiple
output files.

What's your suggestion for dealing with errors?


Current Thread


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.
First Name
Last Name
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.