xml – XSL FO继续/运行表格,页脚中的标记
发布时间:2020-12-16 22:50:59 所属栏目:百科 来源:网络整理
导读:我在XSL-FO中使用标记和“检索表标记”来创建PDF转换中的页脚. 我需要一个解决方案,其中单列表具有“干净”页脚,并且多列表具有在每个列中断之前添加文本(“续”)的页脚.添加的文本只应在分页之前应用,如果表在列之间中断. 我目前的代码差不多这样做了.它适
我在XSL-FO中使用标记和“检索表标记”来创建PDF转换中的页脚.
我需要一个解决方案,其中单列表具有“干净”页脚,并且多列表具有在每个列中断之前添加文本(“续”)的页脚.添加的文本只应在分页之前应用,如果表在列之间中断. 我目前的代码差不多这样做了.它适用于多列表,但对于单列表,即使表不中断,也会添加“续”文本. 代码: <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block> <fo:marker marker-class-name="footer-continued">(continued)</fo:marker> </fo:block> <fo:block> <xsl:text>Contents</xsl:text> </fo:block> <fo:block> <fo:marker marker-class-name="footer-continued"></fo:marker> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> <fo:table-footer> <fo:table-row> <fo:table-cell> <fo:block> <fo:retrieve-table-marker retrieve-class-name="footer-continued" retrieve-position="first-including-carryover" retrieve-boundary-within-table="table"/> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-footer> 解决方法
好吧,这对我有用:
我交换了 retrieve-position="first-including-carryover" 对于 retrieve-position-within-table="last-ending-within-page" (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |