Re: fo:table

Thanks for your suggestion, it doesn't work for some reason. 
Followed is part of files, if space-after.optimum="10pt" in first table is removed, then
second table which falls on second page won't got truncated. Since the table rows
are dynamic, between tables have to be have some gaps. It looks like something related
to gaps between tables, any suggestions?
 
Thanks for your time!
Weihua 
 

<!--first table-->
<fo:table space-after.optimum="10pt">
 <fo:table-column column-width="3.5cm"/>
 <fo:table-column column-width="2.4cm"/>
 <fo:table-column column-width="0.9cm"/>
 <fo:table-column column-width="1.1cm"/>
 <fo:table-column column-width="1.6cm"/>
 <fo:table-column column-width="2.6cm"/>
 <fo:table-column column-width="1.4cm"/>
 <fo:table-column column-width="0.8cm"/>
 <fo:table-column column-width="3.7cm"/>   
 
 <fo:table-header font-size="8pt" line-height="10pt" font-weight="bold">
 <fo:table-row>   
  <fo:table-cell line-height="14pt"  start-indent="2pt"  number-columns-spanned="9"  border-color="black" border-style="solid"   border-width="0.1pt">
   <fo:block text-align="start">
    Additional Fees
   </fo:block>
  </fo:table-cell>
 
 </fo:table-row>
 <fo:table-row keep-with-next="always">
  <fo:table-cell line-height="14pt"  start-indent="2pt"  border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
   <fo:block text-align="center">
    Name
   </fo:block>
  </fo:table-cell>
  <fo:table-cell line-height="14pt"  start-indent="2pt"  border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
   <fo:block text-align="center">
    Description
   </fo:block>
  </fo:table-cell>
  <fo:table-cell line-height="14pt"  start-indent="2pt"  border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
   <fo:block text-align="center">
    TC Hours
   </fo:block>
  </fo:table-cell>
  <fo:table-cell line-height="14pt"  start-indent="2pt"  border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
   <fo:block text-align="center">
    Bill Hours
   </fo:block>
  </fo:table-cell>
  <fo:table-cell line-height="14pt"  start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
   <fo:block text-align="center">
    Hourly Rate
   </fo:block>
  </fo:table-cell>
  <fo:table-cell line-height="14pt"  start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
   <fo:block text-align="center">
    Tabulated Fee
   </fo:block>
  </fo:table-cell>
  <fo:table-cell line-height="14pt"  start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
   <fo:block text-align="center">
    Currency
   </fo:block>
  </fo:table-cell>
  <fo:table-cell line-height="14pt"  start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
   <fo:block text-align="center">
    PM
   </fo:block>
  </fo:table-cell>
 
  <fo:table-cell line-height="14pt"  start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" >
   <fo:block text-align="center">
    Local Amount
   </fo:block>
  </fo:table-cell>
 
 </fo:table-row>
 </fo:table-header>
 <fo:table-body font-size="8pt" line-height="14pt">
  <xsl:for-each select="//FEE_LINE_ITEM">
   <fo:table-row keep-with-next="always">
    <fo:table-cell line-height="14pt"  start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
    <xsl:choose>
     <xsl:when test="TASK_DESCRIPTION='.'">
      <fo:block text-align="start" color="white">
       .
      </fo:block>
     </xsl:when>
     <xsl:otherwise>
      <fo:block text-align="start" >
       <xsl:value-of select="TASK_DESCRIPTION"/>
      </fo:block>
     </xsl:otherwise>
    </xsl:choose>
    </fo:table-cell>
    <fo:table-cell line-height="14pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
    <xsl:choose>
     <xsl:when test="DETAILED_TASK_DESCRIPTION='.'">
      <fo:block text-align="start" color="white">
       .
      </fo:block>
     </xsl:when>
     <xsl:otherwise>
      <fo:block text-align="start" >
       <xsl:value-of select="DETAILED_TASK_DESCRIPTION"/>
      </fo:block>
     </xsl:otherwise>
    </xsl:choose>
    </fo:table-cell>
    <fo:table-cell line-height="14pt"  end-indent="2pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
     <fo:block text-align="end" >
      <xsl:value-of select="TC_HOURS"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt"  end-indent="2pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
     <fo:block text-align="end" >
      <xsl:value-of select="HOURS"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt" end-indent="2pt"  start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
     <fo:block text-align="end" >
      <xsl:value-of select="HOURLY_RATE"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt"  end-indent="2pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
     <fo:block  text-align="end" >
      <xsl:value-of select="TABULATED_FEE"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt" end-indent="2pt"  start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
     <fo:block  text-align="end" >
      <xsl:value-of select="CURRENCY_TYPE"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt" end-indent="2pt"  start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" border-right="0pt">
     <fo:block  text-align="center" >
      <xsl:value-of select="PM"/>
     </fo:block>
    </fo:table-cell>       
    <fo:table-cell line-height="14pt"  end-indent="2pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" border-top="0pt" >
     <fo:block  text-align="end" >
      <xsl:value-of select="LOCAL_AMOUNT"/>
     </fo:block>
    </fo:table-cell>
 
   </fo:table-row>
  </xsl:for-each>
 </fo:table-body>
</fo:table>
<!--sencond table-->
<fo:table space-after.optimum="10pt"> 
 <fo:table-column column-width="3.5cm"/>
 <fo:table-column column-width="2.4cm"/>
 <fo:table-column column-width="0.9cm"/>
 <fo:table-column column-width="1.1cm"/>
 <fo:table-column column-width="1.6cm"/>
 <fo:table-column column-width="2.6cm"/>
 <fo:table-column column-width="1.4cm"/>
 <fo:table-column column-width="0.8cm"/>
 <fo:table-column column-width="3.7cm"/>
 
 <fo:table-header text-align="start" font-weight="bold" font-size="8pt" line-height="10pt">
 

  <fo:table-row   line-height="14pt" keep-with-next="always">
   <fo:table-cell  start-indent="2pt" number-columns-spanned="9"  border-style="solid"   border-width="0.1pt">
    <fo:block text-align="start">
     Expenses
    </fo:block>
   </fo:table-cell>
  </fo:table-row>    
 
  <fo:table-row keep-with-next="always">
   <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt"  start-indent="2pt"  border-style="solid"   border-width="0.1pt">
    <fo:block text-align="center">
     Name
    </fo:block>
   </fo:table-cell>
   <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt"  border-style="solid"   border-width="0.1pt">
    <fo:block text-align="center">
     Description
    </fo:block>
   </fo:table-cell>
   <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt"  border-style="solid"   border-width="0.1pt">
    <fo:block text-align="center">
 
    </fo:block>
   </fo:table-cell>
   <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt"  border-style="solid"   border-width="0.1pt">
    <fo:block text-align="center">
     Units
    </fo:block>
   </fo:table-cell>
   <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt">
    <fo:block text-align="center">
     Rate
    </fo:block>
   </fo:table-cell>
   <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt">
    <fo:block text-align="center">
     Tabulated Fee
    </fo:block>
   </fo:table-cell>
   <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt">
    <fo:block text-align="center">
     Currency
    </fo:block>
   </fo:table-cell>
   <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt">
    <fo:block text-align="center">
     PM
    </fo:block>
   </fo:table-cell>    
   <fo:table-cell line-height="14pt" border-top="0pt"  start-indent="2pt" border-style="solid"   border-width="0.1pt">
    <fo:block text-align="center">
     Local Amount
    </fo:block>
   </fo:table-cell>     
  </fo:table-row>
 </fo:table-header>
 
 <fo:table-body font-size="8pt" line-height="14pt">
  <xsl:for-each select="//DETAIL_LINE_ITEM">
   <fo:table-row keep-with-previous="always">
    <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" end-indent="2pt">
     <fo:block text-align="start" >
      <xsl:value-of select="TASK_DESCRIPTION"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" end-indent="2pt">
     <fo:block text-align="start" >
      <xsl:value-of select="DETAILED_TASK_DESCRIPTION"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" end-indent="2pt">
     <fo:block text-align="end" >
      <xsl:value-of select="TC_HOURS"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" end-indent="2pt">
     <fo:block text-align="end" >
      <xsl:value-of select="HOURS"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" end-indent="2pt">
     <fo:block text-align="end" >
      <xsl:value-of select="HOURLY_RATE"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" end-indent="2pt">
     <fo:block text-align="end" >
      <xsl:value-of select="TABULATED_FEE"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" end-indent="2pt">
     <fo:block text-align="end" >
      <xsl:value-of select="CURRENCY_TYPE"/>
     </fo:block>
    </fo:table-cell>
    <fo:table-cell line-height="14pt" border-top="0pt" border-right="0pt" start-indent="2pt" border-style="solid"   border-width="0.1pt" end-indent="2pt">
     <fo:block text-align="end" >
      <xsl:value-of select="PM"/>
     </fo:block>
    </fo:table-cell>       
    <fo:table-cell line-height="14pt" border-top="0pt"  start-indent="2pt" border-style="solid"   border-width="0.1pt" end-indent="2pt">
     <fo:block  text-align="end" >
      <xsl:value-of select="LOCAL_AMOUNT"/>
     </fo:block>
    </fo:table-cell>      
   </fo:table-row>
  </xsl:for-each>
 </fo:table-body>
</fo:table>




---------------------------------
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

Received on Wednesday, 18 February 2004 12:50:05 UTC