Page 1 of 1

Need to change the decimal page number into topic title abbreviation

Posted: Mon Jun 21, 2021 4:11 pm
by boopathyks
Hi,

I'm doing the dita-ot pdf conversion, using lot of topic dita template and requirement is to changing the decimal page numbers into the topic title abbreviation for one topic alone, other topic it should be in decimal page number only

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

They didn't used any templates for startPageNumbering, as per the initial-page-number, decimal page number getting reset for every topic starting page as page number 1. So that I just want to change the one topic decimal page number into the corresponding topic title abbreviation

for eg:

<topic class="- topic/topic ">
<title class="- topic/title " outputclass="CD_Section_Heading">DEFINITIONS</title>
</topic>


for this DEFINITIONS topic page number should "DEF" as like that I have few topic that should get abbreviation as page number for that corresponding topic pages. Thanks in Advance

Re: Need to change the decimal page number into topic title abbreviation

Posted: Tue Jun 22, 2021 8:18 am
by Radu
Hi,

I'm afraid I do not have a good idea about how to accomplish this. Maybe you can ask around on the DITA Users List:
https://dita-users.groups.io/g/main

Regards,
Radu