I am trying to get some xpath from xsl variable using xsl ver 1.0 . That’s my variable:
<xsl:variable name ="myVar">
<RefData RefTag="test1" bbb="false" />
<RefData RefTag="test2" bbb="false" />
<RefData RefTag="test3" bbb="false" />
<RefData RefTag="test4" bbb="true" />
<RefData RefTag="test5" bbb="false" />
<RefData RefTag="test6" bbb="false" />
</xsl:variable>
I am trying to get bbb attribure value using the RefTag value:
<xsl:if test="$myVar/RefData[@RefTag = 'test3']/@bbb">
this is not working.
VS XSL Debugger returns an error: "To use a result tree fragment in a path expression, first convert it to a node-set using the msxsl:node-set() function."
I don't understand how to use msxsl:node-set() function, and anyway I prefer not to use msxsl namesapce.
Can anyone help here?