Link to home
Start Free TrialLog in
Avatar of vinod Kumar
vinod KumarFlag for India

asked on

Number format needed as prefix for the xhtml files of dita ot epub output

I have used the Dita OT 1.8.5 for epub conversion: but i need the number sequence format 01, 02, 03 .. prefix for the xhtml files names in the epub output.

I have changed the code in html-generation-utils.xsl function as below for the number sequence for file names:

 

   
 <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>

Open in new window



I am getting the output of the file names for all prefix as '01' only.

But i need prefix as 01, 02, 03, ...

Please suggest.

Thanks in Advance
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.