DITA-OT PDF output indices

Here should go questions about transforming XML with XSLT and FOP.
SimonH
Posts: 19
Joined: Thu Mar 29, 2012 4:45 pm

DITA-OT PDF output indices

Post by SimonH »

Hi,

I've noticed in an Index you can end up with entries like

Histogram 11, 11, 24

This is due to 2 topics with the same indexterm been put on the same page in the output. Anyone have a hack for the XSLT to drop duplicate page numbers in an index entry?

Regards,
Simon
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: DITA-OT PDF output indices

Post by radu_pisoi »

Hi,

This is a known issue and it is related to the fact that Apache FOP processor does not support the XSL-FO elements for indexing, see the Formatting Objects for Indexing section from the Apache FOP documentation https://xmlgraphics.apache.org/fop/comp ... ber-prefix.

To avoid this limitation, the DITA Map PDF transformation generates a synthetic XSL-FO structure that represents the index section, and there is no way to customize the Apache FOP processor to keep only a link for a page.
A solution is to use a commercial XSL-FO processors that has support for XSL-FO index elements:
* Antenna House - https://www.antennahouse.com/antenna1/
* RenderX XEP - http://www.renderx.com/tools/xep.html
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply