Editing content of links

Here should go questions about transforming XML with XSLT and FOP.
Posts: 7

Editing content of links

Fri Nov 20, 2015 2:06 pm


Using the DITA-OT1.8.5 transformation to Pdf, a link in a topic to a figure or table results in a reference to a page number in the publication.
If a topic contains a link like this: <xref href="#Concept_1/figure-id1"/>, it will show up like this "Figure 1: image_title on page 10" in the Pdf.

I would like to skip the "on page 10" part of the link, and realized this by changing the "links.xsl" file of the OT. In this file, I skipped the call of the "insertPageNumberCitation" template.

Although the change is successful, I expect it to be hard to maintain because the file is part of the OT.
Is there a way to realize this change in a file of the "customization" folder? E.g. in the "custom.xsl" file?

Thanks in advance, Victor
Posts: 328
Location: Craiova

Re: Editing content of links

Mon Nov 23, 2015 2:53 pm


DITA Open Toolkit PDF output can be customized in several ways:
  • creating a DITA Open Toolkit plugin which adds extensions to the PDF plugin. More details can be found in the DITA Open Toolkit user manual.
  • Creating a customization directory and using it from the PDF transformation scenario.

You can find more details in our user manual:
http://oxygenxml.com/doc/versions/17.1/ ... ation.html
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest