Subject: Re: Avoiding duplicates in the node selection
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Wed, 28 Jun 2000 11:12:12 -0400
|
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
|