如何在xslfo中为以下输出编写代码?

时间:2017-04-05 13:33:35

标签: xslt xsl-fo

我有一份记录列表 一 二 三 当我使用<fo:list-item></fo:list-item> iam获取输出

[1]. One
[2]. Two
[3]. Three

我们需要删除“。”从该项目列表中。有人能帮忙吗 ? 提前致谢

1 个答案:

答案 0 :(得分:0)

来自W3C xsl-fo spec

的修改样本
  <fo:list-item>
    <fo:list-item-label start-indent="5mm" end-indent="label-end()">
      <fo:block>
        <xsl:number format="1"/>
      </fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="body-start()">
      <fo:block>
        <xsl:apply-templates/>
      </fo:block>
    </fo:list-item-body>
  </fo:list-item>

xsl:number format=中指定所需的格式,例如1获取没有点的数字。

相关问题