[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
not . preceding
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.