[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Fwd: problem using the nodeset() extension function

Subject: Fwd: problem using the nodeset() extension function
From: Gregor Neu <gregor.neu@xxxxxxxxxx>
Date: Fri, 30 Jan 2004 08:13:46 +0100
java.lang.nosuchmethodexception for extension func
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.