xsl-list
[Top] [All Lists]

[xsl] What is best practice for dealing with errors in XSLT 1.0?

2010-04-07 09:43:20
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?

/Roger

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>