Chris Yocum wrote:
Hi Everyone,
     I have written up a customization layer for Chunked HTML and MHRA
footnote/bibliography style.  Works very well actually.  However, I
noticed that the footnote numbers are not restarted for each chapter
(or in the case that I noticed, the chapter which is in <d:chapter>
tags and the introduction which is in <d:preface> tags).  It's not a
huge problem but I just wanted to know if there was some parameter
that I was missing in my customization layer or if this was actually
an issue.


Not that I could find Chris.

It's the 'from '  attribute of xsl:number
Instead of 'book' it needs to be set to chapter.


I'd suggest looking at footnote.xsl... although that isn't
very straightforward.

<xsl:template match="d:footnote" mode="footnote.number">
looks to be a good place to start though

   <xsl:otherwise>
<xsl:variable name="pfoot" select="preceding::d:footnote[not(@label)]"/> <xsl:variable name="ptfoot" select="preceding::d:tgroup//d:footnote"/> <xsl:variable name="fnum" select="count($pfoot) - count($ptfoot) + 1"/>

      <xsl:choose>
<xsl:when test="string-length($footnote.number.symbols) &gt;= $fnum"> <xsl:value-of select="substring($footnote.number.symbols, $fnum, 1)"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:number value="$fnum" format="{$footnote.number.format}"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:otherwise>

Assuming you're not using @label...

Its the variable pfoot that contains the number (easy to test).

As is done here, you'd need to exclude the table based ones.
(untested)

<xsl:variable name="pfoot" select="ancestor::d:chapter//d:footnote[not(@label)]"/>

Ditto with ptfoot.

HTH







regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to