Jump to content

using xsl:variable in xpath


kirangentlebreeze1987
 Share

Recommended Posts

hello experts i wanted to know how to build xpath using xsl:varaiblethis is my sample

<xsl:variable name="nodeid"><xsl:value-of select="/employee/employeeForm/field/@nodeValue"/></xsl:variable>

<td><xsl:value-of select="/employee/employeeForm/field/@name"/></td><td><input type="text" name="id" id="{/employee/employeeForm/field/@id}" value="{$emp/employee/employeeinf/"$nodeid"}"/></td>

here i use "$nodeid" in the xpath can i use some thing like that is it possible to build such a kinda expression in xslt

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...