将页脚页码十进制更改为标题缩写

问题描述

我正在做dita-ot pdf转换,使用了很多主题dita模板,要求是将十进制页码更改为单独一个主题主题标题缩写,其他主题只能使用十进制页码

在 commons.xsl 中

<xsl:template match="*[contains(@class,' topic/topic ')]">

<xsl:when test="not(ancestor::*[contains(@class,' topic/topic ')]) and not(ancestor::ot-placeholder:glossarylist)">
<fo:page-sequence master-reference="{$page-sequence-reference}" xsl:use-attribute-sets="__force__page__count" initial-page-number="1">
<xsl:call-template name="startPageNumbering"/>
</fo:page-sequence>
</xsl:when>

</xsl:template>

Commons-attr.xsl:

<xsl:attribute-set name="__force__page__count">
    <xsl:attribute name="force-page-count">
        <xsl:choose>
            <xsl:when test="name(/*) = 'bookmap'">
                <xsl:value-of select="'even'"/>
            </xsl:when>
            <xsl:otherwise>
                <xsl:value-of select="'auto'"/>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:attribute>
</xsl:attribute-set>

没有 startPageNumbering 的模板,根据 initial-page-numberforce_page_count,每个主题的十进制页码页码 1 开始重置。所以我只想将一个主题的十进制页码改为对应的主题标题缩写

例如:

<topic class="- topic/topic ">
<title class="- topic/title " outputclass="CD_Section_heading">DEFinitioNS</title>
</topic>

对于这个 DEFinitioNS 标题主题页脚页码应该是 DEF 就像我有几个主题应该将标题缩写为页脚而不是十进制页码。请帮助我,如果您需要更多,请告诉我。提前致谢!!!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)