Maybe a really dumb question, but how do you test an attribute?
<xsl:if test=".[@id = '30']">
do stuff
</xsl:if>
doesn't seem to work. Is there a better way?
Printable View
Maybe a really dumb question, but how do you test an attribute?
<xsl:if test=".[@id = '30']">
do stuff
</xsl:if>
doesn't seem to work. Is there a better way?
You have the correct syntax, however, it may or may not work depending upon the context node (node is scope).