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: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
[email protected]
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: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]