I have global parameter containing string of XPath expression
<xsl:param name="ItemQuery" select="'//Item'" />
I need to use this parameter later as a value for select attribute:
Code:
<xsl:for-each select="$ItemQuery" >
<xsl:call-template name="item" />
</xsl:for-each>
But having used syntax above I got an error 'ItemQuery' must evaluate to a node list.
What should I do to use string literal '//Item' as XPath expression for select attribute?
Thanks