Need to change the decimal page number into topic title abbreviation

Post here questions and problems related to editing and publishing DITA content.
boopathyks
Posts: 9
Joined: Thu Oct 24, 2019 2:43 pm

Need to change the decimal page number into topic title abbreviation

Post 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
Radu
Posts: 9472
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply