首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >XSL FO继续/运行表,页脚中的标记

XSL FO继续/运行表,页脚中的标记
EN

Stack Overflow用户
提问于 2011-11-30 12:59:51
回答 1查看 3.4K关注 0票数 4

我正在使用标记和XSL中的“检索表标记”在PDF转换中创建页脚。

我需要一种解决方案,其中一列表有一个“干净”页脚,多列表有一个页脚,在每次列中断之前添加文本(“续”)。如果表在列之间中断,则只应在分页之前应用添加的文本。

我现在的代码几乎就是这么做的。它适用于多列表,但对于单列表,即使表没有中断,也会添加“继续”文本。

守则:

代码语言:javascript
复制
  <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>
EN

回答 1

Stack Overflow用户

发布于 2011-12-01 19:07:19

好吧,这对我有用:

我交换了

代码语言:javascript
复制
retrieve-position="first-including-carryover"

代码语言:javascript
复制
retrieve-position-within-table="last-ending-within-page"
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8326340

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档