xsl-list
[Top] [All Lists]

RE: [xsl] Selecting lots of nodes with lots of criteria

2010-09-02 10:28:25
Thanks (again) Martin !
select="//Row[NUMERO = (1, 2, 3, 4, 5, 6, 7, 8)]"
is working !!!! (and a lot more faster...)
You guessed right for XSLT 2.0, of course...

Best regards,
Fabien



-----Message d'origine-----
De : Martin Honnen [mailto:Martin(_dot_)Honnen(_at_)gmx(_dot_)de] 
Envoyé : jeudi 2 septembre 2010 17:19
À : xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Objet : Re: [xsl] Selecting lots of nodes with lots of criteria

Fabien Tillier wrote:
Hi List.
I think I have reached some limitations of the XSL parser.
I am trying to select a list of nodes from a document based on criteria
like
<xsl:call-template name="tab208">
<xsl:with-param name="rows"
      
select="//Row[NUMERO=1]|//Row[NUMERO=2]|//Row[NUMERO=3]|//Row[NUMERO=4]|
//Row[NUMERO=5]|//Row[NUMERO=6]|//Row[NUMERO=7]|//Row[NUMERO=8]"/>
</xsl:with-param>
</xsl:call-template>

Test whether
   select="//Row[NUMERO = 1 or NUMERO = 2 or NUMERO = 3 (and so on)]"
performs better.
Or, as you mention Kernow meaning you use XSLT 2.0, you could try
   select="//Row[NUMERO = (1, 2, 3, 4, 5, 6, 7, 8)]"



-- 

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--