[xep-support] Displaying Tables.

From: Neha Parab <neha_parab2003@yahoo.com>
Date: Tue Jan 17 2006 - 12:17:09 PST

Hi,
   
  While displaying data in tabular format Renderx seems to be slow. Iam using the following code for creation of tables. Can you suggest better way to enhance its speed. Dimensions of table is around 15 * 200(Rows). There can be multiple tables.
   
  ********************************************************************************************
  <xsl:template match="ServiceData">
   <fo:table space-before.optimum="2pt" space-after.optimum="6pt" padding="4pt" width="100%" keep-together.within-page="always">
  <fo:table-column column-width="10%" number-columns-repeated="1" column-number="1"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="2"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="3"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="4"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="5"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="6"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="7"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="8"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="9"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="10"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="11"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="12"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="13"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="14"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="15"/>
  <fo:table-column column-width="8%" number-columns-repeated="1" column-number="16"/>
 
  <fo:table-header>
  <fo:table-row>
   <fo:table-cell border=".5pt solid" number-columns-spanned="16">
    <fo:block background-color="purple" color="white" text-align="start" font-family="Times Roman" font-weight="bold" font-size="8pt">
     <xsl:value-of select="Service/OpcoCd"/><xsl:text>(2005 List Rates)</xsl:text>
    </fo:block>
   </fo:table-cell>
  </fo:table-row>
    <fo:table-row>
   <fo:table-cell border=".5pt solid" number-columns-spanned="1">
    <fo:block text-align="start" font-family="Times Roman" font-size="8pt">
    </fo:block>
   </fo:table-cell>
   <fo:table-cell border=".5pt solid" number-columns-spanned="15">
    <fo:block text-align="center" font-family="Times Roman" font-weight="bold" font-size="8pt">
     <xsl:text>Zones</xsl:text>
    </fo:block>
   </fo:table-cell>
  </fo:table-row>
    <fo:table-row>
   <fo:table-cell border=".5pt solid" number-columns-spanned="1">
    <fo:block text-align="start" font-family="Times Roman" font-size="8pt">
    </fo:block>
   </fo:table-cell>
    <xsl:apply-templates select="./ZoneWeightBreak[position()=1]/Zone" mode="zone"/>
  </fo:table-row>
  </fo:table-header>
    <fo:table-body>
   <xsl:apply-templates select="ZoneWeightBreak" />
  </fo:table-body>
</fo:table>
</xsl:template>
  
<xsl:template match="Zone" mode="zone">
   <fo:table-cell border=".5pt solid">
    <fo:block text-align="center" font-family="Times Roman" font-size="8pt" font-weight="bold">
     <xsl:value-of select ="ZoneID"/>
    </fo:block>
   </fo:table-cell>
</xsl:template>
  
<xsl:template match="ZoneWeightBreak">
 <fo:table-row>
  <fo:table-cell border=".5pt solid">
   <fo:block text-align="center" font-family="Times Roman" font-size="8pt" font-weight="bold">
    <xsl:value-of select="BegRange"/><xsl:text>-</xsl:text><xsl:value-of select="EndRange"/>
   </fo:block>
  </fo:table-cell>
  <xsl:apply-templates select="Zone" mode="data"/>
 </fo:table-row>
</xsl:template>
  <xsl:template match="Zone" mode="data">
 <fo:table-cell border=".5pt solid">
  <fo:block text-align="center" font-family="Times Roman" font-size="8pt">
<!-- <xsl:value-of select ="format-number(Rate,'#,##0.00')"/>-->
   <xsl:value-of select ="Rate"/>
  </fo:block>
 </fo:table-cell>
</xsl:template>
  ********************************************************************************************
   
  Thanks,
   

                
---------------------------------
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Tue Jan 17 13:00:18 2006

This archive was generated by hypermail 2.1.8 : Tue Jan 17 2006 - 13:00:18 PST