how do you add a variable to xpath tried the following but doesn't work
Code:<xsl:for-each select="document('Products.xml')//USEDIN[@SUBSECTION='$variable1']/parent::node()">
Printable View
how do you add a variable to xpath tried the following but doesn't work
Code:<xsl:for-each select="document('Products.xml')//USEDIN[@SUBSECTION='$variable1']/parent::node()">
Remove the single quotes. Wrap $variable1 in string() if it isn't a string already.