|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Removing duplicates not preceding vs. keys
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








