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()">