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.