RE: [xsl] for-each-group usage

Subject: RE: [xsl] for-each-group usage
From: "Angela Williams" <Angela.Williams@xxxxxxxxxxxxxxxxxx>
Date: Wed, 7 Mar 2007 10:08:07 -0600
Thank you for the help!

-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
Sent: Wednesday, March 07, 2007 9:34 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] for-each-group usage

saxon:evaluate() is always going to be expensive. In situations where
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"


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

Michael Kay

Current Thread