On 2013-10-08 Bob Stayton wrote:
> The basic problem is that the entries in the index are generated from
> indexterm elements that reside in the document. You cannot directly use
> the id of an indexterm, because that is used to link back into the
> text.
> So an index entry needs to generate its own unique id. Then the
> stylesheet needs to match the text from the <see> to the first
> <primary>
> element that matches (there may be many).
I am attaching my customization I use for some time (for FO/PDF). It
generates required IDs [1] and corresponding links to them.
I use it rather on simple indexes so it may not work in more complex ones.
HTH, Jan
__________
[1] IDs are composed from normalized primary/secondary entries (spaces are
translated into dashes). Bob's approach to use the generate-id() function
seems to be better here.