Subject: Re: [docbook] para customization affects footnote numbers
I had the very same problem long ago and was helped by Bob Stayton on the docbook-apps mailing list:
ďThis is one of the gotchas of XSL import precedence.† This template in fo/footnote.xsl:
which generates the superscript in the para fo:block is being overridden by your customization of para.† A template match with a higher import precedence will always be used before a template of lower import precedence, even if† that has a better match and higher priority.† So you need to copy this template to your customization layer to raise its import precedence, or change your match attribute in your customization to exclude footnote parents:
So youíll want to change:
And all should be well.
Btw., Iíve replied to the docbook-apps list. The docbook list is for questions about what markup to use and the DocBook schema while docbook-apps is for questions about the stylesheets and other matters of DocBook processing. Iím getting a blank page for that oasis list guidelines page as well. No idea whatís up with that.
After redefining the para template from nwalsh/fo/block.xsl, in order to support and additional attribute, I noticed that this affected the usage of para within footnote tags -- the footnote number in the print (PDF) output no longer appeared in the footnotes section (i.e., the footnote appeared without its number); the number did appear in the footnote reference within the text.
For test purposes, I tried copying the original para template definition, as-is, into my print style sheet, and the result was the same.
(None of the footnote formatting parameters are set in my style sheets -- i.e., I'm using the default formatting.)
The copied para template:
† <xsl:variable name="keep.together">
††† <xsl:call-template name="pi.dbfo_keep-together"/>
† <fo:block xsl:use-attribute-sets="normal.para.spacing">
††† <xsl:if test="$keep.together != ''">
††††† <xsl:attribute name="keep-together.within-column"><xsl:value-of
††† <xsl:call-template name="anchor"/>
What am I missing?
P.S. I tried to read the mailing list guidelines at http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=docbookguidelines.html (linked from http://wiki.docbook.org/topic/DocBookMailingList) but the page was not found?