[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Strange issue with para customization affecting footnotes
I discovered a nasty side effect of a para customization:When copying the d:para template from ./fo/block.xsl to a private customization layer, and using that customization file to produce PDF, the footnote numbers disappear.
This behaviour can be exercised using the attached docbook xml and corresponding stylesheet. Just uncomment/comment out the d:para template to see the effect.
Any modification based off this template[*] has the same effect and makes them unusable.
I'm baffled. What's going on here? Thanks in advance for any help, Erik Leunissen. --[*] I intended to use a modified d:para template to customize the vertical spacing before certain paragraphs (those immediately following a bridgehead). But since it also removes the footnote numbering, I can't use it.
<?xml version="1.0" encoding="UTF-8"?>
<section version="5.0" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:m="http://www.w3.org/1998/Math/MathML"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:db="http://docbook.org/ns/docbook">
<title>Para customization removes footnote numbering in PDF</title>
<para>When copying the d:para template<footnote>
<para>from ./fo/block.xsl </para>
</footnote> to a private customization layer, and using that customization
file to produce PDF<footnote>
<para>using xsltproc and fop.</para>
</footnote>, footnote numbers disappear. Any modification based off this
template has the same effect. So, how can one make a customization that uses
other attribute sets on certain paragraphs?</para>
<programlisting><xsl:template match="d:para">
<xsl:variable name="keep.together">
<xsl:call-template name="pi.dbfo_keep-together"/>
</xsl:variable>
<fo:block xsl:use-attribute-sets="para.properties">
<xsl:if test="$keep.together != ''">
<xsl:attribute name="keep-together.within-column"><xsl:value-of
select="$keep.together"/></xsl:attribute>
</xsl:if>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
</programlisting>
</section>
Attachment:
para-footnote-issue.xsl
Description: application/xslt
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]