[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Footnote marks missing
On 11.2.2019 10:03, Bernhard Kleine wrote: > I did as you advised. I found the offending template: > > <xsl:template match="d:para"> <!-\- In kompakten Listen para-Abstand > anpassen -\-> This templates overrides the following template that injects footnote marks into the footnote: <xsl:template match="d:footnote/d:para[1] |d:footnote/d:simpara[1] |d:footnote/d:formalpara[1]" priority="2"> <!-- this only works if the first thing in a footnote is a para, --> <!-- which is ok, because it usually is. --> <fo:block> <xsl:call-template name="format.footnote.mark"> <xsl:with-param name="mark"> <xsl:apply-templates select="ancestor::d:footnote" mode="footnote.number"/> </xsl:with-param> </xsl:call-template> <xsl:apply-templates/> </fo:block> </xsl:template> The easiest fix would be to change match attribute in your template to d:para[not(parent::d:footnote)] Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------
Attachment:
signature.asc
Description: OpenPGP digital signature
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]