This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: keys vs. parameters
- From: "Hunsberger, Peter" <Peter dot Hunsberger at stjude dot org>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 10 Jun 2002 11:17:52 -0500
- Subject: RE: [xsl] keys vs. parameters
- Reply-to: xsl-list at lists dot mulberrytech dot com
> A typical strategy is that an XSLT processor will generate the key table
> on a particular document the first time you use the key() function with
> that as the context document. So it never builds indexes unless you
> actually use them.
Michael,
assuming that the key is in fact referenced do you have any opinion on the
original question: is there a significant performance difference between
passing the same data as parameters or referencing it via a key? I'm
assuming the reference to the parameter data is pretty direct: Eg:
<xsl:with-param name="gunk" select"data"/>
Then later:
<xsl:value-of select="$gunk/anode"/>
In our case we have to pass the parameter data through a total of five
templates before it is finally consumed and the use of the key would be
mostly to simplify the coding of the stylesheet.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list