Next in thread → Next in month →

RE: [docbook-apps] Re: [docbook] Indexterms - see and seealso linked to another indexterm

From
honyk <>
Date
2013-10-09T18:36:08+00:00
ID
00e901cec51e$69df5da0$3d9e18e0$@
Thread
RE: [docbook-apps] Re: [docbook] Indexterms - see and seealso linked to another indexterm
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.
Next in thread → Next in month →