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] Rendering of index points in footnotes

Yes, that's possible, but exactly how it is done depends on which XSL-FO processor you are using. If you are using FOP, then you can customize the template in fo/autoidx.xsl that starts with:

<xsl:template match="indexterm" mode="reference">

At the point where it generates the fo:page-number-citation you could add a test for footnote ancestry:

 <fo:page-number-citation ref-id="{$id}"/>
 <xsl:if test="ancestor::footnote">
<xsl:apply-templates select="ancestor::footnote[1]" mode="footnote.number"/>

This will generate the page number, the letter "f" as a separator, and the number of the footnote. (add d: if you are using the namespaced stylesheets).

Regarding page ranges, FOP cannot collapse a sequence of page numbers into a range. XEP can do that. With FOP, you can generate a range using a special pair of indexterms to mark the start and end of range:

<indexterm id="mystart" class="startofrange"><primary>foo</primary></indexterm>
<indexterm startref="mystart" class="endofrange"/><!-- empty element -->

Bob Stayton
Sagehill Enterprises

On 2/26/2014 12:55 AM, Brad Scott wrote:

Is it possible to tweak the stylesheets so that the index formatting is
different when indexterms are in a footnote?

The example below shows what we'd like to achieve, ideally:

     Afrobarometer 12, 30n. 28, 44nn. 10-13

ie include the footnote number along with the page number when the index
is compiled and, for indexterms with a range, have a range of the note

Hope this explains the scenario adequately.

Thank you


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]