xsl-fo - 使用 Antenna House 6.3 XSL 处理器,如何在行跨页时显示边框?
问题描述
使用 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>
结果是当行跨页时没有底边或顶边。
显然,除非我添加更多细节,否则我无法发布。
当文档呈现并且表格有一行跨页中断时,中断的页面底部不会出现边框,中断的页面顶部也不会出现边框。
解决方案
推荐阅读
- laravel - 在创建时验证 laravel 中的重叠日期
- oracle-coherence - 连贯性错误我在 oracle 连贯性中遇到错误,例如“无法将类型 -28 转换为集合类型
- docker - 在 Docker 容器中访问 Redis CLI
- python - 使用 openpyxl 对 XLSX 工作簿中的选项卡进行排序
- google-translate - 谷歌翻译小部件是免费或付费功能 googleTranslateElementInit()
- r - 控制 R igraph 中节点和边的绘制顺序?
- amazon-web-services - VSTS AWS Elastic Beanstalk 部署问题
- matlab - 异数循环 Simulink 中的持久变量
- pointers - 使用过程指针和用户定义类型时出错 (Fortran 2003)
- python - 计算每组中的重复次数