XSL-FO - 列表中的脚注

时间:2016-01-20 11:40:28

标签: xml xslt xsl-fo

在我的样式表中,我使用三层嵌套列表的模板:

● level 1
  ▲ level 2
    ○ level 3

在列表中使用脚注是很常见的。问题是,这样的脚注以某种方式继承了列表的缩进:

enter image description here

我已尝试过几乎所有内容,从使用start-indent脚注到处理列表中的空白。什么都没有帮助。是否有任何特定的属性可用于忽略父级的缩进?

footnote-body的代码:

<fo:footnote-body>
  <fo:block font-family="{$serif}" font-size="11pt" line-height="1.5" text-align="left" margin-left="0pt" text-indent="7pt">
    <fo:inline font-size="70%" baseline-shift="super" color="red">
      <xsl:call-template name="calculateFootnoteNumber"/>
    </fo:inline>
    <xsl:text> </xsl:text>
    <xsl:call-template name="footPars"/>
  </fo:block>
</fo:footnote-body>

1 个答案:

答案 0 :(得分:1)

哦,显然:

<fo:footnote-body>
            <fo:block font-family="{$serif}" font-size="11pt" line-height="1.5" text-align="left" margin-left="0pt" text-indent="0">
                <fo:inline font-size="70%" baseline-shift="super" color="red">
                    <xsl:call-template name="calculateFootnoteNumber"/>
                </fo:inline>
                <xsl:text> </xsl:text>
                <xsl:call-template name="footPars"/>
            </fo:block>
        </fo:footnote-body>

margin-left="0pt"text-indent="0"的对联做对了!在text-indent 7pt之前。将其设置为0有帮助。

相关问题