RE: [xsl] Finiding nodes filtered by attribute

Subject: RE: [xsl] Finiding nodes filtered by attribute
From: Jarno.Elovirta@xxxxxxxxx
Date: Fri, 8 Nov 2002 16:34:25 +0200
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


Current Thread