Re: [xsl] how to avoid losing data when the transformation fails

Subject: Re: [xsl] how to avoid losing data when the transformation fails
From: "Joel Kalvesmaki director@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 May 2025 21:27:06 -0000
I would convert the XSLT file so that the primary output is nothing, or is negligible, and the secondary output becomes the point of focus. Use <xsl:result-document> or file:write(), protecting those actions with the appropriate condition-checking, and message writing. Under this approach you do not and should not need to make the -s: and -o: parameters identical on the command line. My two cents.

What is the proper way to deal with this problem? Is there a way to instruct Saxon (I am using Saxon 9 HE) not to write an output when the transformation fails? Or should the transformation be organized differently?

Joel -- Joel Kalvesmaki http://textalign.net

Current Thread