Jump to content

using xsl:variable in xpath


kirangentlebreeze1987

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...