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-8.9.0.4.jar 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 {http://saxon.sf.net/}function()
Failed to compile stylesheet. 1 error detected.


This was the sample xsl:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:saxon="http://saxon.sf.net/"
    xmlns:f="http://www.local.hu/"
    version="2.0">
    <xsl:template match="/">
        <o>
            <xsl:copy-of select="saxon:try(1 div 0, saxon:function('f:catch-division-error',1))"/>
        </o>
    </xsl:template>

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


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

Thanks.

Laszlo Jega-Szabo