我已使用 Dita OT 1.8.5 进行 epub 转换:但我需要数字序列格式 01、02、03 .. epub 输出中 xhtml 文件名的前缀。
我已将 html-generation-utils.xsl 函数中的代码更改为文件名的编号顺序,如下所示:
<xsl:function name="htmlutil:constructHtmlResultTopicFilename" as="xs:string">
<xsl:param name="topic" as="document-node()"/>
<xsl:variable name="topicFilename"
select="concat(htmlutil:getResultTopicBaseName($topic), $OUTEXT)"
as="xs:string"/>
<xsl:for-each select="$topic">
<xsl:variable name="number"><xsl:value-of select="format-number(position(),'00')"/></xsl:variable>
<xsl:sequence select="concat($number, $topicFilename)"/>
</xsl:for-each>
</xsl:function>
我仅将所有前缀的文件名输出为“01”。
但我需要前缀为 01, 02, 03, ...
请建议。
提前致谢