This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Selecting unique elements
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Selecting unique elements
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 10 Nov 2000 10:50:06 -0000
- Reply-To: xsl-list at mulberrytech dot com
> //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