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: Selecting unique elements


> //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

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