Footnote and multicolumn using fop

Dear All,

I need help from the experienced people in the Group.

I use fop version 2.0 for the xsl-fo->pdf transformation and I use an xslt
stylesheet to get the xsl-fo from a xml file.
I chose to have a page with a one column header and later a two column
layout. The before and after sections have a one column layout.
The one column header is got with a <fo:block span="2">blabla</fo:block>
which is positioned at the higher level under the flow element.
The problem is that I cannot generate a footnote which respects the limits
of the 2 columns. The footnote separator is one line which can span 1 or 2
columns (I tried them both). The footnote spans the 2 columns and
overwrites over the other column.

Here is xsl code used to make the transformation to the xsl-fo code, that I
use to write the footnote, which is surrounded by the fn tag in the xml
source.

<xsl:template match="fn">
<fo:footnote>
<fo:inline font-size="smaller" baseline-shift="super">
<xsl:number count="fn" format="i"/>
</fo:inline>
<fo:footnote-body>
<fo:list-block provisional-distance-between-starts="20pt"
provisional-label-separation="5pt">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block font-size="smaller" baseline-shift="super" line-height="0.9em">
<xsl:number count="fn" format="i"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block font-size="smaller"
line-height="0.9em">
<xsl:apply-templates/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:footnote-body>
</fo:footnote>
</xsl:template>

I attach a picture of the wrong layout that I get.

Thanks in advance for any help in solving this issue.

Fausto (Italy)

Received on Sunday, 11 December 2016 09:54:03 UTC