Removing duplicates not preceding vs. keys

Subject: Removing duplicates not preceding vs. keys
From: Ronald <ronald@xxxxxxxxxxx>
Date: Fri, 07 Jul 2000 14:46:52 +0200
Hi there,

a while ago I asked something about removing duplicates.
Well I got all sorts of answers, and most of them worked fine.
Thanx for that.

But now.
Most of the answers I got concerned either using
 <xsl:for-each select="//SPEECH[not(.=preceding::SPEECH)]">
or
<xsl:key name="sortKey" match="value" use="var" />

both of 'em work fine, but can anybody tell which one is more favourable and why?
the "preceding" option is real simple to use, but maybe is not such a good option with large files since it is constantly checking whether or not is has seen that element before.


But isn't that also the case when using keys?
First it has to generate keys and then it has to check whether or not that key has duplicates.


I'm probably missing something obvious here, but I just want to have it clear.

BYE :-)
Ronald
---------||-------||-----------
Ronald Heller
Salience BV
Villawal 21
3432 NX Nieuwegein
tel.: 030 60 56 675
fax: 030 6056 324
mob.: 06 20 41 25 77
ronald@xxxxxxxxxxx
www.salience.nl


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread