[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: Selecting unique elements


Subject: RE: Selecting unique elements
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 10 Nov 2000 10:50:06 -0000

> //row[preceding-sibling::row/attribute::UserName !=
> attribute::UserName]/attribute::UserName
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

As a general rule, don't use X!=Y to compare node-sets, use not(X=Y). x!=y
means "if there exists an x in X and a y in Y such that x!=y", in other
words you are testing whether the username is different from every previous
username, not whether it is different from some previous username.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread