- From: G. Ken Holman <gkholman@CraneSoftwrights.com>
- Date: Sun, 11 Dec 2016 07:58:27 -0500
- To: Fausto Passariello <afunzionale@gmail.com>,www-xsl-fo@w3.org
I'm not a user of FOP personally, but I can observe that footnotes in XSL-FO are page-wide and not column-wide. Other tools address column-wide footnotes through extensions. Perhaps FOP has an extension you can use. If you look in the XSL-FO specification, you will see that column definition happens in the main-reference-area, that part of the page that is shrunk after allocating footnote space. The main-reference-area is separted from the footnote-reference-area. There is a helpful diagram on page 209 of my XSL-FO book, a preview of which can be found on my web site. I hope this is helpful. . . . . . . Ken At 2016-12-10 00:44 +0100, Fausto Passariello wrote: >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) > >Content-Type: image/jpeg; name="multicolumn and footnote.JPG" >Content-Disposition: attachment; filename="multicolumn and footnote.JPG" >X-Attachment-Id: f_iwifw0ar0 > -- Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Streaming hands-on XSLT/XPath 2 training @US$45: http://goo.gl/Dd9qBK | Crane Softwrights Ltd. _ _ _ _ _ _ http://www.CraneSoftwrights.com/f/ | G Ken Holman _ _ _ _ _ _ _ _ _ _ mailto:gkholman@CraneSoftwrights.com | Google+ blog _ _ _ _ _ http://plus.google.com/+GKenHolman-Crane/posts | Legal business disclaimers: _ _ http://www.CraneSoftwrights.com/legal |
Received on Sunday, 11 December 2016 12:59:08 UTC