Reputation: 105043
This is my XSL:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:r="my-own-namespace"
version="2.0" exclude-result-prefixes="xs">
<xsl:template match="/">
<xsl:value-of select="r:foo('test')"/>
</xsl:template>
<xsl:function name="r:foo">
<xsl:value-of select="$val"/>
</xsl:function>
</xsl:stylesheet>
This is what Xalan 2.7.1 (used from Java) is saying:
(Location of error unknown)java.lang.NoSuchMethodException: For extension
function, could not find method
org.apache.xml.utils.NodeVector.foo([ExpressionContext,] ).
What is is about? How to solve the problem?
Upvotes: 2
Views: 3738