Subject: RE: Selecting lots of nodes with lots of criteria
From: "Fabien Tillier" <f.tillier@xxxxxxxx>
Date: Thu, 2 Sep 2010 18:30:08 +0200
|
Is this like an Index on a table ?
-----Message d'origine-----
De : Martin Honnen [mailto:Martin.Honnen@xxxxxx]
Envoyi : jeudi 2 septembre 2010 17:38
@ : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Objet : Re: Selecting lots of nodes with lots of criteria
Fabien Tillier wrote:
> select="//Row[NUMERO = (1, 2, 3, 4, 5, 6, 7, 8)]"
> is working !!!! (and a lot more faster...)
If speed matters you could of course define a key
<xsl:key name="k1" match="Row" use="NUMERO"/>
and then use
select="key('k1', (1, 2, 3, 4, 5, 6, 7, 8))"
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
|