PDA

Click to See Complete Forum and Search --> : XSL attribute test


Thelonius
Sep 27th, 2002, 10:41 AM
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?

Lethal
Oct 4th, 2002, 10:46 PM
You have the correct syntax, however, it may or may not work depending upon the context node (node is scope).