Roman numeral in TOC pages

Here should go questions about transforming XML with XSLT and FOP.
chymical
Posts: 16
Joined: Wed Nov 24, 2010 12:37 pm

Roman numeral in TOC pages

Post by chymical »

Hi,

Does anyone know how to get the page numbers of a TOC in a PDF file to be Roman style? I am making a PDF using the DITA-OT files in Oxygen 12.

In my bookmap, I have files at the <frontmatter><notices> level and also the <frontmatter><preface> level that have Roman page numbers, so I can't understand how they are Roman but the TOC is not. It does not seem to be a case of simply using the format="i" attribute in the page sequence, so if anyone can tell me what else I need to adjust, I would be very grateful.

Cheers,

John
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: Roman numeral in TOC pages

Post by Radu »

Hi John,

So if you open the OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/commons.xsl in Oxygen and look in the:

Code: Select all

<xsl:template name="processTopicChapter">
and

Code: Select all

<xsl:template name="processTopicAppendix">
templates in each one you have an fo:page-sequence to which you can add the format="i" attribute.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply