Change saxon processor HE to EE

139 Views Asked by At

I installed xml calabash successfull on my windows machine. Running an xpl with 2 xslt transformations and writing the output in a file seems to works fine.

My problem is, that I need some exslt functions that aren't available with HE. I do have an EE version of saxon9, but I can't get it to work.

I installed:

xmlcalabash-1.1.20-98.zip

Within the ./xmlcalabash/lib I added:

saxon9ee.jar saxon-license.lic

When I run a xpl (with an exslt function):
java -classpath "D:/xmltools/Apps/xmlcalabash/xmlcalabash.jar;D:/xmltools/Apps/xmlcalabash/lib/saxon9ee.jar" com.xmlcalabash.drivers.Main --saxon-processor ee .\xpl\testpipe.xpl

I receive an error:

Failed to obtain EE processor; using HE instead.
ERROR: file:/D:/xmltools/Apps/xmlcalabash/xpl/pidadd.xsl:13:7:XPST0017:
Cannot find a 0-argument function named {http://exslt.org/math}random()
ERROR: Errors were reported during stylesheet compilation
ERROR:     cause: Errors were reported during stylesheet compilation
ERROR: Pipeline failed: Errors were reported during stylesheet compilation
ERROR: Underlying exception: Errors were reported during stylesheet compilation

Hope someone can help?

1

There are 1 best solutions below

1
Norm On

Can you try creating an explicit classpath and putting saxon-license.lic on that path? I believe the lib directory can only be used to find libraries that the Calabash jar expects to find there. It isn't the case that all files placed in there are automatically on the classpath.