xsl-list
[Top] [All Lists]

Re: [xsl] Slow XSLT

2008-03-01 17:32:57
On 02/03/2008, Manfred Staudinger 
<manfred(_dot_)staudinger(_at_)gmail(_dot_)com> wrote:
I would propose a slightly different approach:

<xsl:for-each select="/Reports/Report/Columns/ColGrp">
   <xsl:apply templates mode="ColGrp"/>
should read
   <xsl:apply-templates mode="ColGrp"/>
 </xsl:for-each>
 passing the parameters needed for your processing and using only two
 templates for ColGrp: one for the innermost ColGrp, and one for the
 others
 <xsl:templates match="ColGrp[Col]" mode="ColGrp">
 processing for the innermost ColGrp here
add the apply-templates here:
   <xsl:apply-templates mode="ColGrp"/>
 </xsl:for-each>

Manfred

--~------------------------------------------------------------------
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>