RE: [xsl] xsl:for-each efficiency

Subject: RE: [xsl] xsl:for-each efficiency
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 16 Sep 2003 14:46:28 +0300
Hi,

> Would there be a better way of doing:
> 
> <xsl:for-each select="//element[@element-key = $id]">
> </xsl:for-each>

<xsl:key name="foo" match="element" use="@element-key"/>

as a top-level element and 

<xsl:for-each select="key('foo', $id)">
</xsl:for-each>

in the template

Cheers,

Jarno

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


Current Thread