[xep-support] Displaying Tables.

Neha Parab neha_parab2003 at yahoo.com
Tue Jan 17 12:17:09 PST 2006


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20060117/314e52af/attachment.html>


More information about the Xep-support mailing list