One explanation might be that you are running Saxon-HE 9.2, which no longer supports dynamically-loaded extension functions.
There are other reasons it could be failing. It would be useful to know more about how you are running Saxon, for example whether from the command line or from the .NET Saxon.Api interface. Setting the -TJ option on the command line can give useful diagnostics.


Michael Kay

From: Raveendran, Reshma []
Sent: 27 January 2010 10:01
Subject: [saxon] Exception when calling extension functions



When trying to run the xslt extension function samples from the Saxon resources kit I get the following error --

{"XPath syntax error at char 13 in {{ext:add(2,2)}}:\n    Cannot find a matching 2-argument function named {clitype:SampleExtensions.SampleExtensions?asm=SampleExtensions}add()"}

 {"XPath syntax error at char 27 in {{ext:average((1,2,3,4,5,6))}}:\n    Cannot find a matching 1-argument function named {clitype:SampleExtensions.SampleExtensions?asm=SampleExtensions}average()"} ….


This error is generated for all extension functions in the xslt. I’m probably missing something obvious, kindly advise.


Best Regards,


Reshma Raveendran


NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.