xsl-list
[Top] [All Lists]

RE: Finiding nodes filtered by attribute

2002-11-08 07:34:25
Hi,

1)How would I do a match to find all <td> tags that don't 
have an attribute named class?

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?

td[not(@class = 'a') or not(@class)]

3)How would I do a math on all <td> tags that don't have any 
attributes?

td[not(@*)]

Cheers,

Jarno

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



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