Hi Klaus,
You will need to customize an XSL template to do that. Copy the template that starts
with:
<xsl:template match="indexterm" mode="reference">
from the autoidx.xsl stylesheet file to your customization layer. That's the template
that creates the <a href> link for an indexterm. You can change the code that
generates the "title" variable. Instead of using mode="title.markup", you can use
mode="label.markup" which generates the section number. If an indexterm is in an
unnumbered section as in a Preface, then label.markup returns nothing, so you might
want your code to check whether label.markup returns a value and use the title if not.
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "Klaus Schilling" <[email protected]>
To: <[email protected]>
Sent: Monday, February 06, 2012 3:48 AM
Subject: [docbook-apps] Section Numbers instead of sectin names in indexes.
Hello list,
In the html output, automatically generated index entries display the
section title or titleabbrev, depending on one of the parameters, for
each entry. But those are not necessarily unique. Is there a way to patch
the xsl sheets in order to make the automated index display section
numbers instead of section titles?
Klaus Schilling
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]