This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Are xsl:key's best going into the future?
- From: "Robert Koberg" <rob at koberg dot com>
- To: <XSL-List at lists dot mulberrytech dot com>
- Date: Fri, 15 Mar 2002 04:58:48 -0800
- Subject: [xsl] Are xsl:key's best going into the future?
- Reply-to: xsl-list at lists dot mulberrytech dot com
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