Saxon 8.4 is a very long time ago, and 8.9 is not that recent either, so memories of exactly what changed when are fading rapidly.

Two suggestions:

(a) change the namespace URI from com.ncr.esb.sql.XConnection to java:com.ncr.esb.sql.XConnection

(b) run using -TJ on the command line, to get more detailed diagnostics.

Michael Kay

On 28/06/2011 16:56, P, Habin wrote:


Issue: stylesheet which was working with saxon 8.4 is throwing error in saxon 8.9.External java methods are called inside the stylesheet which are giving the errors.




We are calling the methods of com.ncr.esb.sql.XConnection class.This class and the related classes are packaged as jar and is present in the classpath.

Class is declared in name space as  below :


<xsl:stylesheet version="2.0" xmlns:xsl=""







Below is the code snippet to call this method.


<xsl:variable name="db" select="sql:new()"/>

<!-- Connect to the database with minimal error detection -->

<xsl:if test="not(sql:connect($db, 'requestpool'))" >

<xsl:message>Error Connecting to the Database</xsl:message>

<xsl:copy-of select="sql:getError($db)/ext-error"/>



I have attached the xsl.The first argument to the function is an object,is that causing the error ?




XPST0003: XPath syntax error at char 35 on line 53 in {...l:connect($db, 'requestpool...}:
    Cannot find a matching 2-argument function named {com.ncr.esb.sql.XConnection}connect()


 Please advise.


Many Thanks !!

------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense.
_______________________________________________ saxon-help mailing list archived at