我正在使用标记和XSL中的“检索表标记”在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>发布于 2011-12-01 19:07:19
好吧,这对我有用:
我交换了
retrieve-position="first-including-carryover"为
retrieve-position-within-table="last-ending-within-page"https://stackoverflow.com/questions/8326340
复制相似问题