This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: simple grouping question
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: simple grouping question
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 19 Sep 2000 13:18:47 +0100
- Reply-To: xsl-list at mulberrytech dot com
> From: Ben Robb [mailto:Ben@cscape.com]
> <xsl:if test="date != preceding-sibling::event/date or
> position() = 1">
>
No. This tests if there is a preceding date that is different from the
current date; you want to test whether the immediately preceding date is the
same as the current one. Generally speaking, when dealing with node-sets,
avoid "a!=b", what you usually want is "not(a=b)"
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list