Thank you Michael.

If I got it right I have to use the saxon:function()
with the saxon:try() function together, but when I have tried to use the saxon:function()
function in my sample xsl I got this exception:

C:\Temp\saxon>java -classpath saxon-sa- net.sf.saxon.Transform -s test.xml test.xsl
Error at xsl:copy-of on line 8 of file:/C:/Temp/saxon/test.xsl:
  XPST0003: XPath syntax error at char 61 on line 8 in {...n('f:catch-division-error',...}:
    Cannot find a matching 2-argument function named {}function()
Failed to compile stylesheet. 1 error detected.

This was the sample xsl:

<xsl:stylesheet xmlns:xsl=""
    <xsl:template match="/">
            <xsl:copy-of select="saxon:try(1 div 0, saxon:function('f:catch-division-error',1))"/>

    <xsl:function name="f:catch-division-error">
        <xsl:param name="error-info"/>
        <xsl:sequence select="$error-info"/>

I think the version does not include needed implementations, am I right?


Laszlo Jega-Szabo