
And further to Eliot's point, I have an off-the-shelf solution for back-of-the-book-indexes for XSL-FO 1.0 here: http://www.CraneSoftwrights.com/resources/#bbi I hope this is helpful. . . . . . . . Ken At 2018-05-21 10:21 -0500, Eliot Kimber wrote:
FOP does not implement FO index processing, so it is incapable of removing duplicated page numbers on its own.
Antenna House and XEP RenderX can both render indexes.
If FOP is a requirement it can be done by implementing a two-pass process using the FOP area treebasically post-process the rendered index to generate a literal markup representation of the correct page number references then rerender the XML to produce the final PDF.
Cheers,
Eliot -- Eliot Kimber http://contrext.com
From: oXygen-user <oxygen-user-bounces@oxygenxml.com> on behalf of Bernhard Kleine <bernhard.kleine@gmx.net> Date: Monday, May 21, 2018 at 10:01 AM To: <oxygen-user@oxygenxml.com> Subject: [oXygen-user] repeated indexentries with the same text from the same page
During the indexing process I noticed that an repeated indexentry is not automatically removed. An example:
I agree that the example is not very intelligent. I substituted the entity
<!ENTITY T3 "T₃ ">
with
<!ENTITY T3 "T₃ <indexterm>&primTthree;</indexterm>"> <!ENTITY primTthree "<primary>TH (Schilddrüsenhormon)</primary><secondary sortas='Tdrei'>Tâ, (Trijodothyronin)</secondary>" >
and the page 521 is about thyroid hormones, but it shows that FOP does not check for doubled page numbers of the same entry.
Kind regards
Bernhard
-- Contact info, blog, articles, etc. http://www.CraneSoftwrights.com/x/ | Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Streaming hands-on XSLT/XPath 2 training class @ US$45 (5 hours free) |