[xsl] Are xsl:key's best going into the future?

Subject: [xsl] Are xsl:key's best going into the future?
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Fri, 15 Mar 2002 04:58:48 -0800
Hi,

I have heard a developer from Xalan say that he is working on making an
operation like:

<xsl:apply-templates select="//*[@id=$id]"/>

as fast as:

<xsl:apply-templates select="key('the-key', $id)">

[ I also asked if you would gain the same performance if you did something
like:
<xsl:apply-templates select="document($doc)//*[@id=$id]"> but no answer... I
assume it is different?? ]

In fact, if you want to get the incredible performance gains from XSLTC,
they:
[ Xalan's XSLTC team -
http://xml.apache.org/xalan-j/xsltc/xsltc_performance.html ]
warn that you should not use keys.

Should keys be avoided?

best,
-Rob




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


Current Thread