Re: xpath string as parameter from java

Mike Brown <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
Natascia De Bortoli wrote:
> Hello at all!!
> I need a method to pass a string as an XPATH query to a xsl file.

If you are using a processor that natively supports exsl:evaluate(),
then you can pass the XPath expression, as a string, as a stylesheet
parameter. Your Java code is fine. Instead of using exsl:node-set()
in your XSLT, you need to use exsl:evaluate(). I hope this helps.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.