xsl-list
[Top] [All Lists]

RE: Finiding nodes filtered by attribute

2002-11-08 07:48:45
For anywhere in the document:

1)How would I do a match to find all <td> tags that don't have an attribute 
named class?
[BR] "//td[not(@class)]"

 2)How would I do a match to find all <td> tags that don't have a class 
attribute equal to "a" or have no class attribute at all?
[BR] "//td[not(@class) or not(@class = 'a')]"

3)How would I do a math on all <td> tags that don't have any attributes?
[BR] "//td[not(@*)]"


Rgs,

Ben

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>