← Prev in month
← Prev in thread
Formatting footnote in list-block
X-NONE X-NONE MicrosoftInternetExplorer4 I have a customisation to format footnotes at the bottom of a page by using a list-block. It applies a margin indent to the footnote text, but also repeats the footnote mark within the fo:list-item-body. I suspect that the last xsl:apply-templates in the code is reprocessing the fo:list-item-label block which generates the footnote mark. Do I need to do something with the apply-templates? Output is attached in the Word doc, and customisation is as follows: X-NONE X-NONE MicrosoftInternetExplorer4 <xsl:param name= "footnotealign"> 1 </xsl:param> <!--select "1" to apply a margin indent for footnote text; select "0" to wrap text with no margin indent--> <xsl:template match= "d:footnote" > <xsl:choose> <xsl:when test ="ancestor::d:table or ancestor::d:informaltable"> <xsl:call-template name="format.footnote.mark"> <xsl:with-param name="mark"> <xsl:apply-templates select="." mode="footnote.number"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <!--coding to select footnote text alignment --> <xsl:choose> <xsl:when test="$footnotealign != '0'"> <fo:footnote> <fo:inline/> <fo:footnote-body xsl:use-attribute-sets= "footnote.properties"> <fo:list-block space-before="4pt"> <!--space-before: leading between each footnote ****works 19/10/11--> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block> <xsl:call-template name="format.footnote.mark"> <xsl:with-param name="mark"> <xsl:apply-templates select="." mode="footnote.number"/> </xsl:with-param> </xsl:call-template> </fo:block> </fo:list-item-label> <!--retain fo:list-item-label--> <fo:list-item-body margin-left="0mm" start-indent="3mm"> <!--indent for footnote text--> <!--keep margin-left="0mm", value ineffective; keep start-indent="3mm", works; left margin indent for whole footnote ****works 20/10/11--> <xsl:apply-templates/> </fo:list-item-body> </fo:list-item> </fo:list-block> </fo:footnote-body> </fo:footnote> </xsl:when> <xsl:otherwise> <fo:footnote> <fo:inline> <xsl:call-template name="format.footnote.mark"> <xsl:with-param name="mark"> <xsl:apply-templates select="." mode="footnote.number"/> </xsl:with-param> </xsl:call-template> </fo:inline> <fo:footnote-body xsl:use-attribute-sets= "footnote.properties"> <xsl:apply-templates/> </fo:footnote-body> </fo:footnote> </xsl:otherwise> </xsl:choose> <!--end workaround--> </xsl:otherwise> </xsl:choose> </xsl:template> I am using DB 1.76 ns stylesheets. Thanks. Dave Gardiner Attachment: Footnote in a list-block.doc Description: MS-Word document
← Prev in month
← Prev in thread