xsl-fo fop 0.94使用keep-together with wrap-option =“wrap”

时间:2010-02-09 08:55:02

标签: xml xsl-fo apache-fop

在xsl-fo fop 0.94中使用keep-together和wrap-option =“wrap”会忽略wrap选项吗?有没有办法让它们都起作用?

   <fo:table-row border="1pt solid black" keep-together="always">
        <fo:table-cell>
            <fo:block overflow="scroll" wrap-option="wrap">
          This is a long text It is desired that this text be wrapped in the table cell but just can not make it happen!
            </fo:block>
        </fo:table-cell>
   </fo:table-row>

1 个答案:

答案 0 :(得分:8)

keep-together =“always”隐含地设置keep-together .within-line =“always”,这基本上禁止换行。使用keep-together.within-column =“always”代替!

另请参阅:http://xmlgraphics.apache.org/fop/faq.html#keep-together

FOP不支持BWT,overflow =“scroll”。这仅适用于浏览器模式下的XSL-FO。你不能在纸上滚动。