Link to the index in PDF output

Post here questions and problems related to editing and publishing DITA content.
Edwin
Posts: 22
Joined: Tue May 17, 2016 4:58 pm

Link to the index in PDF output

Post by Edwin »

Hello,
our customers frequently use the pdf manual as a lookup reference. We have added an index to the end of the document, so users can easilly find and navigate to the topics.

We would like to add a link in the footer of each page that links back to the index. This way users do not have to scroll down to the index each time. As the index is generated it is not possible to create a simple cross reference there is no key to refer to. Is there a way to do this?
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Link to the index in PDF output

Post by Radu »

Hi,

Sorry for the delay, you want this for the XSL-FO based PDF publishing, right?
In the XSLT:

DITA-OT-DIR/plugins/org.dita.pdf2/xsl/fo/commons.xsl

there is a hardcoded id attribute value:

Code: Select all

    <xsl:variable name="id.index" select="'ID_INDEX_00-0F-EA-40-0D-4D'"/>
which seems to be assigned to the generated index page. So maybe you can try to refer to that ID value. I looked inside the generated XSL-FO file and it seems to be present there.

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