Subject: RE: selection of all children except one
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 3 Oct 2004 21:51:33 +0100
|
Or in 2.0
select="* except bad"
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: david_n_bertoni@xxxxxxxxxx [mailto:david_n_bertoni@xxxxxxxxxx]
> Sent: 03 October 2004 19:41
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: selection of all children except one
>
> > 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
|