[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Rendering of index points in footnotes
<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:text>f</xsl:text><xsl:apply-templates select="ancestor::footnote[1]" mode="footnote.number"/>
</xsl:if>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 bobs@sagehill.net On 2/26/2014 12:55 AM, Brad Scott wrote:
Hi 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 numbers. Hope this explains the scenario adequately. Thank you Brad --------------------------------------------------------------------- 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]