xsl-list
[Top] [All Lists]

Re: selection of all children except one

2004-10-03 11:41:16
I tried:
<xsl:for-each select="child::*[not(bad)]">
But the bad child is included in the result. 
Does anybody know, how can I exclude this child? 
I don't want to use the function position(), 
because the elements can have got a random order.

Provided the current node is "myelements", this will work:

select="*[not(self::bad)]"

Dave


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