HELP: Why can't I get exslt:node-set working with Xalan-J

A

Andy Fish

Hi

I am using Xalan-J 2.4.1 and I am trying to get the EXSLT node-set function
working. xalan:nodeset() works fine but when I try exslt:node-set I get this
error:

(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerException): java.lang.NoSuchMethodException:
For extension function, could not find method
org.apache.xml.dtm.ref.DTMNodeIterator.node-set([ExpressionContext,] ).

I have tried all the web searches and classpath combinations I can think of.
All I have found is one post saying it's not supported and another saying it
just works automatically. Please someone put me out of my misery.

(fwiw here's my complete xsl)

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:exslt="http://exslt.org/common">
<xsl:template match="/">
<xsl:variable name="rtf"><a /></xsl:variable>
<xsl:value-of select="name(exslt:node-set($rtf)/*)"/>
</xsl:template>
</xsl:stylesheet>

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,251
Members
46,851
Latest member
CristineKo

Latest Threads

Top