This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Avoiding duplicates in the node selection
- To: xsl-list at mulberrytech dot com, Max Rubinstein <mrubinst at hotmail dot com>
- Subject: Re: Avoiding duplicates in the node selection
- From: Warren Hedley <w dot hedley at auckland dot ac dot nz>
- Date: Wed, 28 Jun 2000 11:12:12 -0400
- Organization: Department of Engineering Science, The University of Auckland
- References: <20000628134906.65083.qmail@hotmail.com>
- Reply-To: xsl-list at mulberrytech dot com
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