Hello,
I installed xalan-j_2_5_2 from xml.apache.org.
I tried to run the example given in
http://xml.apache.org/xalan-j/extensions_xsltc.html#nodeset_ext:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsltc-extension="http://xml.apache.org/xalan/xsltc"
xmlns:xalan="http://xml.apache.org/xalan"
xmlns:exslt="http://exslt.org/common"
version="1.0">
<xsl:template match="/">
<xsl:variable name="rtf">
<docelem>
<elem1>elem1</elem1>
<elem2>elem2</elem2>
</docelem>
</xsl:variable>
<!-- Use nodeset as an XSLTC extension function -->
<xsl:value-of select="xsltc-extension:nodeset($rtf)/docelem/elem1"/>
<!-- Use nodeset as a Xalan-Java extension function -->
<xsl:value-of select="xalan:nodeset($rtf)/docelem/elem1"/>
<!-- Use nodeset as an EXSLT extension function -->
<xsl:value-of select="exslt:node-set($rtf)/docelem/elem1"/>
<!-- Use nodeset as standard function -->
<xsl:value-of select="nodeset($rtf)/docelem/elem1"/>
</xsl:template>
</xsl:stylesheet>
and got the following error message:
XSLT Error (javax.xml.transform.TransformerException):
java.lang.NoSuchMethodException: For extension function, could not find
method
org.apache.xalan.stree.DocumentFragmentImpl.nodeset([ExpressionContext,]
).
I use the following java environment:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
and set the classpath to include
xercesImpl.jar xalan.jar xml-apis.jar
from xalan-j_2_5_2/bin/
Can anybody explain what went wrong and how I could solve the problem.
Thank you,
Gregor
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list