OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Section Numbers instead of sectin names in indexes.


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
bobs@sagehill.net


----- Original Message ----- From: "Klaus Schilling" <schilling.klaus@web.de>
To: <docbook-apps@lists.oasis-open.org>
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: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]