Calling Static Methods in a Java Class does not work in Saxon 9.2.0.2 Home Edition (HE), but does work in Enterprise Edition (EE).

For example, if the XSL template contains this instruction ...

<xsl:value-of select="math:random()" xmlns:math="java:java.lang.Math"/>

... the Saxon transformer emits this exception ...

"net.sf.saxon.trans.XPathException: Cannot find a matching 0-argument function named {java:java.lang.Math}random()"

The instruction fails in Saxon 9.2.0.2 Home Edition (HE), but works in the Enterprise Edition (EE).

--

+++
Tim Telcik
telcik@gmail.com