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: Avoiding duplicates in the node selection


This is in the FAQ! Check out

http://freespace.virgin.net/b.pawson/xsl/N2696.html

Max Rubinstein wrote:
> 
> It works, but I get duplicate entries as a result.  I would like to figure
> out how to remove duplicate keywords.

Short answer (not tested):

<xsl:for-each select="//Keywords/*[not(name() = name(following::*))]" />

-- 
Warren Hedley


 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]