xsl-list
[Top] [All Lists]

RE: Finiding nodes filtered by attribute

2002-11-08 08:52:58
 
1)How would I do a match to find all <td> tags that don't 
have an attribute named class?

match="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?

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

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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



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