Need to change the decimal page number into topic title abbreviation
Post here questions and problems related to editing and publishing DITA content.
-
- 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
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
-
- Posts: 9472
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Need to change the decimal page number into topic title abbreviation
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service