← Prev in month ← Prev in thread

Reset footnote numbering for each chunk

From
Jan Tosovsky <>
Date
2017-03-08T19:59:09+00:00
ID
01f401d29846$6cca36d0$465ea470$@
Thread
Reset footnote numbering for each chunk
Dear All,

my HTML output consists of (manually) chunked chapters and sections.
However, my footnotes are still numbered from the beginning. 

I've located the following template in the html/footnote.xsl:

<xsl:template match="footnote" mode="footnote.number">

which implements quite basic counting (simplified here for better
understanding):

<xsl:variable name="fnum" select="count(preceding::footnote) + 1"/> 

Is there a simple way to get actual chunk element inside this template and
modify the above code to select just 'preceding::footnote' up to that chunk
element?

Thanks,

Jan
← Prev in month ← Prev in thread