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

Subject: [xsl] 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
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

Current Thread