[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Performance question

Subject: Performance question
From: "Larry Mason" <Larry_Mason@xxxxxx>
Date: Thu, 17 Jun 1999 12:31:35 -0500
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 the
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 the
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 colors
instead of variables made no difference)
and
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:choose>
            <xsl:when test="$depth mod 2">
              <TR bgcolor="{$my_stripe_even}"/>
            </xsl:when>
            <xsl:otherwise>
              <TR bgcolor="{$my_stripe_odd}"/>
            </xsl:otherwise>
          </xsl:choose>
  </xsl:template>

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



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.