2012-02-26 92 views
0

我在XSL-FO中生成一個表,我的內容是一個可能很大的文本。有什麼方法可以調整柱高?我正在使用XSLT生成XSL-FO。 我試過了:XSL-FO中的動態表格單元高度?

<fo:block-container font-family="Times New Roman"height="7.14mm" 
        overflow="hidden"> 

但它不起作用。

回答

0

您的示例代碼在字體系列和高度屬性之間缺少空格。你也應該在你的容器裏放一個fo:block。以下作品適用於我並修復了我的塊的高度,隱藏了溢出的文字:

... 
<fo:table-cell> 
<fo:block-container font-family="Times New Roman" height="7.14mm" 
       overflow="hidden"> 
    <fo:block> 
     <xsl:value-of select="fieldWithLongText" /> 
    </fo:block> 
</fo:block-container> 
</fo:table-cell> 
...