Hi,
I need to call a public static method that returns in xslt. I'm using jstl to do the transformation and hence using the jaxp parser which would use XSLTC or Xalan internally.
The way I have the namespacee declaration for my xslt is
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:autn="http://schemas.autonomy.com/aci/" xmlns:myUtil="http://xml.apache.org/xalan/java/com.csa.porter.scat.CategoryUtils" xmlns:java="http://xml.apache.org/xalan/java"
exclude-result-prefixes="myUtil java">
and in side the xslt I have <xsl:value-of select="myUtil:getCategoryName('45.123')"/>
I get an error saying
XPST0017: XPath syntax error at char 39 on line 125 in {...etCategoryName('45.123...}
Cannot find a matching 1-argument function named
{http://xml.apache.org/xalan/java/com.csa.porter.scat.CategoryUtils}getCategoryName()
How can I successfully call anexternal custom java method from my xslt using jstl?
Thank you.