W3C home > Mailing lists > Public > xproc-dev@w3.org > March 2010

error in Calabash running xslt with java extension functions.

From: Egbert Gramsbergen <E.F.Gramsbergen@tudelft.nl>
Date: Wed, 10 Mar 2010 16:54:29 +0100
Message-ID: <6C321C785BFDA548A9DB3C126675968D26DC9D@SRV566.tudelft.net>
To: <xproc-dev@w3.org>
I am trying to run an xslt (2.0) in a pipeline in Calabash. The xslt uses extension functions from java.lang.Math.
I get error messages like:
    XPath syntax error at char 10 on line 8 in {math:PI() div 180.}: Cannot find a matching 0-argument function named {java:java.lang.Math}PI()
and similarly
    Cannot find a matching 1-argument function named {java:java.lang.Math}cos()
I have used this xslt many times outside Calabash, just using Saxon, and then it works fine. I expected it to work in Calabash because it also uses Saxon.
Has anyone encontered this problem, or knows if this kind of direct Java use was deliberately disabled, or should I adapt some setting or....?
thanks, Egbert Gramsbergen
Delft University of Technology
Received on Wednesday, 10 March 2010 16:16:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:51 UTC