Using java provided parameters into xpath function while applying xslt transformation
- by filmac
I'm working at a java application that performs some xslt transformation.
I would like to match nodes into the xslt document, using a parameter provided by java.
Which is the right way to do something like:
<xsl:template match="//m:properties/*[contains($pattern,name())]">
because when I launch my application, it claims it's not able to compile the stylesheet, since pattern is not defined but I'm setting it using the setParameter method and I was able to use another parameter defined in the same way but in a different context.
Thanks in advance
Fil