Or in 2.0
select="* except bad"
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: david_n_bertoni(_at_)us(_dot_)ibm(_dot_)com
[mailto:david_n_bertoni(_at_)us(_dot_)ibm(_dot_)com]
Sent: 03 October 2004 19:41
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--