xsl-list
[Top] [All Lists]

RE: [xsl] for-each-group usage

2007-03-07 09:08:27
Thank you for the help!

-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Sent: Wednesday, March 07, 2007 9:34 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] for-each-group usage

saxon:evaluate() is always going to be expensive. In situations where
you
are using the same expression repeatedly (e.g. to calculate a sort key
or a
grouping key) it's well worth splitting it into its two halves,
saxon:expression and saxon:eval:

<xsl:variable name="sortkey"
select="saxon:expression(../data-set/order-by/@xpath)"/>

then

<xsl:sort select="saxon:eval($sortkey)"/>

Michael Kay
http://www.saxonica.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>
--~--

<Prev in Thread] Current Thread [Next in Thread>