Re: [xsl] selection of all children except one

Subject: Re: [xsl] selection of all children except one
From: david_n_bertoni@xxxxxxxxxx
Date: Sun, 3 Oct 2004 14:41:16 -0400
> 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

Current Thread