如何解决将页脚页码十进制更改为标题缩写
我正在做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-number
和 force_page_count
,每个主题的十进制页码从页码 1 开始重置。所以我只想将一个主题的十进制页码改为对应的主题标题缩写
例如:
<topic class="- topic/topic ">
<title class="- topic/title " outputclass="CD_Section_Heading">DEFINITIONS</title>
</topic>
对于这个 DEFINITIONS
标题主题页脚页码应该是 DEF
就像我有几个主题应该将标题缩写为页脚而不是十进制页码。请帮助我,如果您需要更多,请告诉我。提前致谢!!!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。