Results 1 to 2 of 2

Thread: XSL attribute test

  1. #1

    Thread Starter
    New Member Thelonius's Avatar
    Join Date
    Sep 2002
    Posts
    2

    XSL attribute test

    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?

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    You have the correct syntax, however, it may or may not work depending upon the context node (node is scope).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width