2013-03-21 66 views
2

我有一個使用xslfo生成的PDF。在那裏,我有一個表格,其中一個單元格跨越兩行單元格。在它橫跨的兩排細胞中,我需要較低的細胞爲較小的高度,我嘗試了一些不起作用的東西。這裏是代碼 - 任何幫助將不勝感激。在xslfo中修改行高

<fo:table-row> 
<fo:table-cell border-style="solid" border-width="0.5pt" padding="1pt" display-align="before" number-rows-spanned="3"> 
<fo:block wrap-option="wrap" text-align="left"> 
<xsl:value-of select="$TextStrings/NSEF21B/Scope_Ins_Cov_Heading1"/> 
</fo:block> 
<fo:block wrap-option="wrap" text-align="left"> 
<xsl:value-of select="$TextStrings/NSEF21B/Scope_Ins_Cov_Heading1b"/></fo:block> 
</fo:table-cell> 
</fo:table-row> 
<fo:table-row> 
<fo:table-cell border-style="solid" border-width="0.5pt" padding="1pt" display-align="center"> 
<fo:block wrap-option="wrap" text-align="center"> 
<xsl:value-of select="$TextStrings/NSEF21B/Scope_Ins_Cov_Heading2"/> 
</fo:block> 
</fo:table-cell> 
<fo:table-cell border-style="solid" border-width="0.5pt" padding="1pt" display-align="center"> 
<fo:block wrap-option="wrap" text-align="center"> 
<xsl:value-of select="$TextStrings/NSEF21B/Scope_Ins_Cov_Heading3"/> 
</fo:block> 
</fo:table-cell> 
</fo:table-row> 
<fo:table-row> 
<fo:table-cell border-style="solid" border-width="0.5pt" padding="1pt" display-align="before"> 
<fo:block text-align="center"> 
<xsl:value-of select="$TextStrings/Deductible"/> 
</fo:block> 
</fo:table-cell> 
<fo:table-cell border-style="solid" border-width="0.5pt" padding="1pt" display-align="before"> 
<fo:block text-align="center"> 
<xsl:value-of select="$TextStrings/AsStatedSecB"/> 
</fo:block> 
</fo:table-cell> 
</fo:table-row> 

回答

5

由於這是仍然無人應答:

<fo:table-row>元素應該做的伎倆設置the height attribute