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'" <xsl-list at mulberrytech dot com>
- Subject: RE: Avoiding duplicates in the node selection
- From: Ben Robb <Ben at cscape dot com>
- Date: Wed, 28 Jun 2000 16:19:55 +0100
- Reply-To: xsl-list at mulberrytech dot com
Warren Hedley wrote:
> Short answer (not tested):
<xsl:for-each select="//Keywords/*[not(name() = name(following::*))]" />
I would add:
For this to be more generic, sort it by name() using the <xsl:sort> command
within your <xsl:for-each> loop.
Ben
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list