RE: Performance question

Subject: RE: Performance question
From: "Earl Bingham" <earl@xxxxxxxxx>
Date: Fri, 18 Jun 1999 11:14:47 -0500
You could create a servlet from the XSL file using SAXON 4.2

- earl

-----Original Message-----
From:	owner-xsl-list@xxxxxxxxxxxxxxxx [SMTP:owner-xsl-list@xxxxxxxxxxxxxxxx]
On Behalf Of Larry Mason
Sent:	Thursday, June 17, 1999 12:32 PM
To:	xsl-list@xxxxxxxxxxxxxxxx
Subject:	Performance question

In turning XML data into an HTML table, each table row is given an alternate
color.  The report under test has 2283 rows.  During my attempt to optimize
XSLT code, I am finding some interesting numbers.  If I use the start_row2
template below, the time to convert is 9.4 seconds.  The same report using
start_row3 template, runs in 4.2 seconds!
My question is 2 fold:
Which of the pieces in start_row2 is the time consumer? (hard coding the
instead of variables made no difference)
Is there a better approach?

I am using the latest XT version.
Thanks in advance,
Larry Mason

  <xsl:template name="start_row2">
    <xsl:param-variable name="depth">2</xsl:param-variable>
            <xsl:when test="$depth mod 2">
              <TR bgcolor="{$my_stripe_even}"/>
              <TR bgcolor="{$my_stripe_odd}"/>

  <xsl:template name="start_row3">
    <xsl:param-variable name="depth">2</xsl:param-variable>

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread