footnote citation not on same page as footnote body

Here should go questions about transforming XML with XSLT and FOP.
avondenhoff
Posts: 4

footnote citation not on same page as footnote body

Fri Nov 11, 2016 12:06 pm

Hi All,

I have the situation that the citation of a footnote is published on one page and the footnote body is on the other page.
If the footnote body was published on the first page, the footnote citation would flow to the next page.....

I use AntennaHouse as fo-formatter.
Does anyone know of a way to prevent this from happening?

Anneke


Code: Select all


<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE root [
 <!ENTITY page-width    "210mm">
 <!ENTITY page-height   "297mm">
 <!ENTITY margin-top    "15mm">
 <!ENTITY margin-bottom "15mm">
 <!ENTITY margin-left   "15mm">
 <!ENTITY margin-right  "15mm">
 <!ENTITY before-extent "13mm">
 <!ENTITY after-extent  "13mm">
  ]>
<root font-family="Times" font-size="20pt"
    xmlns="http://www.w3.org/1999/XSL/Format">
   
    <layout-master-set>
        <simple-page-master master-name="frame"
            page-height="&page-height;" page-width="&page-width;"
            margin-top="&margin-top;" margin-bottom="&margin-bottom;"
            margin-left="&margin-left;" margin-right="&margin-right;">
            <region-body region-name="frame-body"
                margin-top="&before-extent;" margin-bottom="&after-extent;"/>
            <region-after extent="&after-extent;"/>
        </simple-page-master>
    </layout-master-set>
   
    <page-sequence master-reference="frame">
       
        <static-content flow-name="xsl-region-after">
            <block text-align="center"><page-number/></block>
        </static-content>
        <static-content flow-name="xsl-footnote-separator">
            <block font-style="italic">Footnotes</block>
        </static-content>
       
        <flow flow-name="frame-body" font-size="40pt">
            <block>This is a test</block>
            <block>This is a<footnote>
                <inline baseline-shift="15pt" font-size="20pt">1</inline>
                <footnote-body>
                    <block font-size="20pt">
                        <inline baseline-shift="5pt" font-size="15pt"
                            >1 </inline>This is a footnote with a very
                        long paragraph so that it will (hopefully) wrap onto
                        multiple lines in the footnote area.
                    </block>
                </footnote-body>
            </footnote> test</block>
            <block>This is a test</block>
            <block>This is a<footnote>
                <inline baseline-shift="15pt" font-size="20pt">2</inline>
                <footnote-body>
                    <block font-size="20pt">
                        <inline baseline-shift="5pt" font-size="15pt"
                            >2 </inline>This is another footnote, once
                        again with a very long paragraph so that it will
                        (hopefully) wrap onto multiple lines in the footnote area.
                    </block>
                </footnote-body>
            </footnote> test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a<footnote>
                <inline baseline-shift="15pt" font-size="20pt">3</inline>
                <footnote-body>
                    <block font-size="20pt">
                        <inline baseline-shift="5pt" font-size="15pt"
                            >3 </inline>This is a footnote with a very
                        long paragraph so that it will (hopefully) wrap onto
                        multiple lines in the footnote area.
                    </block>
                </footnote-body>
            </footnote> test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a test</block>
            <block>This is a test</block>
           
        </flow>
       
    </page-sequence>
   
</root>
radu_pisoi
Posts: 310
Location: Craiova

Re: footnote citation not on same page as footnote body

Fri Nov 11, 2016 1:38 pm

Hi,

This problem seems to be related with the Antenna House processor because it cannot be reproduced with Apache FOP or RenderX XEP.

Thus, I think the best place to address this question is the Antenna House support, see: https://www.antennahouse.com/antenna1/c ... uidelines/.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
avondenhoff
Posts: 4

Re: footnote citation not on same page as footnote body

Fri Nov 11, 2016 4:49 pm

Hi Radu,

I will contact AntennaHouse.
Thank you for your quick reply!

Best regards,

Anneke

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest