Page 1 of 1

Roman numeral in TOC pages

Posted: Wed Jan 26, 2011 7:26 pm
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

Re: Roman numeral in TOC pages

Posted: Thu Jan 27, 2011 11:09 am
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