[xsl] selection of all children except one

Subject: [xsl] selection of all children except one
From: "Katrin Schoenherr" <k_schoenherr@xxxxxx>
Date: Sun, 3 Oct 2004 20:23:35 +0200
Hallo,

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.

<myelements>
  <good>first</good>
  <better>second</better>
  <best>third</best>
  <bad>...</bad>
 </myelements>

Thanks, Katrin.

Current Thread