繁体   English   中英

使用 Antenna House 6.3 XSL 处理器,如何在跨页行中断时显示边框?

[英]With Antenna House 6.3 XSL processor, how can border's be made to appear when a row breaks across pages?

使用 Antenna House 6.3 XSL 处理器,如何在跨页行中断时显示边框?

我的 fo 看起来像:

<fo:table xmlns:fo="http://www.w3.org/1999/XSL/Format" border-bottom-color="black"
    border-bottom-style="solid" border-bottom-width="0.5pt" border-left-color="black"
    border-left-style="solid" border-left-width="0.5pt" border-right-color="black"
    border-right-style="solid" border-right-width="0.5pt" border-top-color="black"
    border-top-style="solid" border-top-width="0.5pt" font-size="7pt" space-after="10pt"
    space-before="10pt" start-indent="inherit" width="auto">
    <fo:table-body start-indent="0pt" table-layout="auto">
        <fo:table-row keep-together="always">
            <fo:table-cell border-after-width.conditionality="retain" border-bottom-color="black"
                border-bottom-style="solid" border-bottom-width="0.5pt" border-right-color="black"
                border-right-style="solid" border-right-width="0.5pt">
                <fo:block end-indent="4pt" space-after="3pt" space-after.conditionality="retain"
                    space-before="4pt" space-before.conditionality="retain" start-indent="4pt"
                    >This</fo:block>
            </fo:table-cell>
            <fo:table-cell border-after-width.conditionality="retain" border-bottom-color="black"
                border-bottom-style="solid" border-bottom-width="0.5pt">
                <fo:block end-indent="4pt" space-after="3pt" space-after.conditionality="retain"
                    space-before="4pt" space-before.conditionality="retain" start-indent="4pt">
                    <fo:block background-color="#f0f0f0" end-indent="from-parent(end-indent)"
                        font-size="88.88888889%" keep-with-previous.within-page="always"
                        line-height="106%" linefeed-treatment="preserve" padding="6pt"
                        space-after="0pt" space-before="9pt"
                        start-indent="from-parent(start-indent)" white-space-collapse="false"
                        white-space-treatment="preserve" wrap-option="wrap"
                        line-height-shift-adjustment="disregard-shifts" font-family="Courier New"
                        >That</fo:block>
                </fo:block>
            </fo:table-cell>
        </fo:table-row>
    </fo:table-body>
</fo:table>

结果是当一行在页面上中断时没有底部边框或顶部边框。

显然,除非我添加更多详细信息,否则我无法发布。

当文档呈现并且表格有一行在页面上断开时,页面底部断开的位置不会出现边框,页面顶部断开的位置也不会出现边框。

border-before-width.conditionality="retain"fo:table将解决您的问题。 请参阅以下从您的示例 FO 文件修改的示例快照。

示例 PDF 快照

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM