This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: simple grouping question


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]