Using java provided parameters into xpath function while applying xslt transformation

Posted by filmac on Stack Overflow See other posts from Stack Overflow or by filmac
Published on 2012-10-30T16:57:19Z Indexed on 2012/10/30 17:00 UTC
Read the original article Hit count: 131

Filed under:

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

© Stack Overflow or respective owner

Related posts about xslt