Bug 5917 - table defined as footenote doesnt appear if body text is too long
Summary: table defined as footenote doesnt appear if body text is too long
Status: CLOSED DUPLICATE of bug 8819
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: all
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-18 03:30 UTC by Robby Klehm
Modified: 2012-04-01 13:54 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robby Klehm 2002-01-18 03:30:32 UTC
I defined a table that should apear always at the end of the page. After long
time of searching for the solution I decided to define this table into a
footnote, which runs very well.

Now one problem is still left: It seams to me that if the body text reaches the
end of the page too and reaches the place where the footenote-table should be
displayed, no table will be displayed.

I try to send you the respective example.fo file, in which you may see the
definition of the table, but no table in the generated pdf-file.
Comment 1 Robby Klehm 2002-01-18 04:54:42 UTC
example.fo follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<!-- defines the layout master -->
<fo:layout-master-set>
<fo:simple-page-master master-name="A4"
                           page-height="29.7cm"
                           page-width="21cm"
                           margin-top="55mm"
                           margin-bottom="2cm"
                           margin-left="2cm"
                           margin-right="2cm">
<fo:region-body margin-top="40mm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="1.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name="A4">
<fo:static-content flow-name="xsl-region-before">
<!-- table start -->
<fo:table font-family="sans-serif" font-size="12pt">
<fo:table-column column-width="90mm"/>
<fo:table-column column-width="40mm"/>
<fo:table-column column-width="25mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell ><fo:block>Testfirma</fo:block></fo:table-cell>
<fo:table-cell ><fo:block>Kundennr.:</fo:block></fo:table-cell>
<fo:table-cell ><fo:block>00100</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell ><fo:block>z.H. Herr Robby Klehm</fo:block></fo:table-cell>
<fo:table-cell ><fo:block>Auftr./Rech.-nr.:</fo:block></fo:table-cell>
<fo:table-cell ><fo:block>110000</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell ><fo:block>Westringstraße 3</fo:block></fo:table-cell>
<fo:table-cell ><fo:block>Datum:</fo:block></fo:table-cell>
<fo:table-cell ><fo:block>16.11.2001</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row margin-top="5mm">
<fo:table-cell ><fo:block space-before.optimum="10pt">04435
Schkeuditz</fo:block></fo:table-cell>
<fo:table-cell ><fo:block>Seite:</fo:block></fo:table-cell>
<fo:table-cell ><fo:block><fo:page-number/> von <fo:page-number-citation
ref-id="last"/></fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<!-- table end --> </fo:static-content>
<fo:flow flow-name="xsl-region-body" 
            font-family="sans-serif" 
            font-size="12pt">
<!-- table start -->
<fo:table font-family="sans-serif" font-size="12pt">
<fo:table-column column-width="30mm"/>
<fo:table-column column-width="31mm"/>
<fo:table-column column-width="51mm"/>
<fo:table-column column-width="31mm"/>
<fo:table-column column-width="30mm"/>
<fo:table-body>
<fo:table-row font-family="sans-serif" font-size="6pt">
<fo:table-cell padding-start="2mm">
<fo:block>Kennzeichen</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm">
<fo:block>Fabrikat</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm">
<fo:block>Fahrzeug-Ident-Nr.</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm">
<fo:block>Erstzulassung</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm">
<fo:block>Farbcode</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-start="2mm"
                     border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     border-left-style="solid"
                     border-left-width=".1mm"
                     padding-top="2mm"><fo:block>G AN 321</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm"
                     border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     border-left-style="solid"
                     border-left-width=".1mm"
                     padding-top="2mm"><fo:block>Opel</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm"
                     border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     border-left-style="solid"
                     border-left-width=".1mm"
                    
padding-top="2mm"><fo:block>WFOBXXGAFBSJ57396</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm"
                     border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     border-left-style="solid"
                     border-left-width=".1mm"
                    
padding-top="2mm"><fo:block>30.10.1997</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm"
                     border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     border-left-style="solid"
                     border-left-width=".1mm"
                     padding-top="2mm"><fo:block>66</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row font-family="sans-serif" font-size="6pt">
<fo:table-cell padding-start="2mm"
                     padding-top="4mm">
<fo:block>km-Stand</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm"
                     padding-top="4mm">
<fo:block>Modell</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm"
                     padding-top="4mm">
<fo:block>Typschlüssel</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm"
                     padding-top="4mm">
<fo:block>HU</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm"
                     padding-top="4mm">
<fo:block>Motorcode</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-start="2mm"
                     border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     border-left-style="solid"
                     border-left-width=".1mm"
                     padding-top="2mm"><fo:block>58900</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm" 
                     border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     border-left-style="solid"
                     border-left-width=".1mm"
                     padding-top="2mm"><fo:block>Vectra</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm" 
                     border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     border-left-style="solid"
                     border-left-width=".1mm"
                    
padding-top="2mm"><fo:block>01234567802233</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm" 
                     border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     border-left-style="solid"
                     border-left-width=".1mm"
                     padding-top="2mm"><fo:block>03 2003</fo:block></fo:table-cell>
<fo:table-cell padding-start="2mm" 
                     border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     border-left-style="solid"
                     border-left-width=".1mm"
                     padding-top="2mm"><fo:block>G6A</fo:block></fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<!-- table end --><fo:block font-size="12pt"
           space-before.optimum="15pt"
           space-after.optimum="15pt">Rechnung</fo:block>
<fo:block space-after.optimum="10pt">Sehr geehrter Herr Klehm,</fo:block>
<fo:block keep-with-next.within-page="always"
          keep-together.within-page="always"
          space-after.optimum="0pt">vielen Dank für Ihren Auftrag und das damit
unsere Firma gesetzte Vertrauen. Wir erlauben uns, Ihnen folgende Leistungen zu
berechnen:     
</fo:block>
<fo:block keep-with-next.within-page="always"
          keep-together.within-page="always"
          space-after.optimum="30pt">vielen Dank für Ihren Auftrag und das damit
unsere Firma gesetzte Vertrauen. Wir erlauben uns, Ihnen folgende Leistungen zu
berechnen:                                                                     
                                                                               
                                                             </fo:block><!--
table start -->
<fo:table space-before.optimum="10pt">
<fo:table-column column-width="70mm"/>
<fo:table-column column-width="40mm"/>
<fo:table-column column-width="30mm"/>
<fo:table-column column-width="25mm"/>
<fo:table-body>

<fo:table-row>
<fo:table-cell number-columns-spanned="2"><fo:block>Hände waschen</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block text-align="end">3.00 AW</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">29.70 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2"><fo:block>Gurte richten</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block text-align="end">2.00 AW</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">7.80 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2"><fo:block>Fahrzeugteppich
säubern</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block text-align="end">10.00 AW</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">39.00 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2"><fo:block>Kofferraum auskehren</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block text-align="end">1.00 AW</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">6.00 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2"><fo:block>Bremsen prüfen</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block text-align="end">1.00 AW</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">3.90 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2"><fo:block>Gurte richten</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block text-align="end">12.00 AW</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">46.80 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2"><fo:block>Gurte richten</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block text-align="end">12.00 AW</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">46.80 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2"><fo:block>Gurte richten</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block text-align="end">12.00 AW</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">46.80 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell><fo:block>Nachschalldämpfer</fo:block></fo:table-cell>
<fo:table-cell><fo:block>000000000000</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">1.00 EA</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">124.68 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2">
<fo:block>Klimaanlage füllen</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block  text-align="end"></fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">200.12 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2">
<fo:block>Elektronik auslesen</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block  text-align="end"></fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">15.00 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2">
<fo:block>Lackierung Kotflügel Porsche vorn</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block  text-align="end"></fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">330.33 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2">
<fo:block>Überführung zum Lackierer</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block  text-align="end"></fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">33.44 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2">
<fo:block>Abschleppdienst unter 20 km</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block  text-align="end"></fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">99.99 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2">
<fo:block>HU durch TÜV</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block  text-align="end"></fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">49.50 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell number-columns-spanned="2">
<fo:block>ASU durch TÜV</fo:block>
</fo:table-cell>
<fo:table-cell><fo:block  text-align="end"></fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">32.45 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

</fo:table-body>
</fo:table>
<!-- table end -->

<fo:block keep-with-next="always" space-before.optimum="10pt">Wir bedanken uns
für Ihren Auftrag und das damit in uns gesetzte Vertrauen.                     
                                                                               
      </fo:block>
<fo:block space-before.optimum="5pt"
          keep-with-previous="always">Zahlungsziel ist der 6.12.2001.</fo:block>
<fo:block space-before.optimum="5pt"
          keep-with-previous="always"></fo:block><!-- footnote-->
<fo:block>
<fo:footnote><fo:inline></fo:inline>
<fo:footnote-body>
<fo:block keep-with-next="always" space-after.optimum="10pt"
space-before.optimum="5pt"></fo:block>
</fo:footnote-body>
</fo:footnote>
</fo:block>
<!-- table start as footnote-->
<fo:block>
<fo:footnote><fo:inline></fo:inline>
<fo:footnote-body>
<fo:table 
          keep-with-previous.within-page="always">
<fo:table-column column-width="57mm"/>
<fo:table-column column-width="12mm"/>
<fo:table-column column-width="57mm"/>
<fo:table-column column-width="12mm"/>
<fo:table-column column-width="27mm"/>
<fo:table-body>

<fo:table-row keep-with-next="always">
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm"
                     padding-start="2mm">
<fo:block>Lohn</fo:block></fo:table-cell>
<fo:table-cell padding-end="2mm"><fo:block
text-align="end">226.80</fo:block></fo:table-cell>
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm"
                     padding-start="2mm">
<fo:block>Frachtkostenanteil</fo:block></fo:table-cell>
<fo:table-cell padding-end="2mm"><fo:block
text-align="end">133.43</fo:block></fo:table-cell>
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm"
                     padding-start="2mm">
<fo:block text-align="center">Rechnungs-</fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row keep-with-next="always">
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm"
                     padding-start="2mm">
<fo:block>Fremdleistungen</fo:block></fo:table-cell>
<fo:table-cell padding-end="2mm"><fo:block
text-align="end">545.45</fo:block></fo:table-cell>
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm"
                     padding-start="2mm">
<fo:block>Zwischensumme</fo:block></fo:table-cell>
<fo:table-cell padding-end="2mm"><fo:block
text-align="end">1030.36</fo:block></fo:table-cell>
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm"
                     padding-start="2mm"
                     number-rows-spanned="2">
<fo:block text-align="center">betrag</fo:block>
</fo:table-cell>
</fo:table-row>

<fo:table-row keep-with-next="always">
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm"
                     padding-start="2mm">
<fo:block>Material</fo:block></fo:table-cell>
<fo:table-cell padding-end="2mm"><fo:block
text-align="end">124.68</fo:block></fo:table-cell>
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm">
<fo:block></fo:block></fo:table-cell>
<fo:table-cell padding-end="2mm"><fo:block text-align="end">
</fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row keep-with-next="always">
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm"
                     padding-start="2mm">
<fo:block>Fahrzeuge</fo:block></fo:table-cell>
<fo:table-cell padding-end="2mm"><fo:block
text-align="end">0.00</fo:block></fo:table-cell>
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm"
                     padding-start="2mm">
<fo:block>Mehrwertsteuer 16%</fo:block></fo:table-cell>
<fo:table-cell padding-end="2mm">
<fo:block text-align="end">164.86</fo:block></fo:table-cell>
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm">
<fo:block></fo:block></fo:table-cell>
</fo:table-row>

<fo:table-row>
<fo:table-cell border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     border-left-style="solid"
                     border-left-width=".1mm"
                     padding-start="2mm">
<fo:block>Zwischensumme</fo:block></fo:table-cell>
<fo:table-cell border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     padding-end="2mm"><fo:block
text-align="end">896.93</fo:block></fo:table-cell>
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm"
                     border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     padding-start="2mm">
<fo:block>Sonderleistungen</fo:block></fo:table-cell>
<fo:table-cell border-bottom-style="solid"
                     border-bottom-width=".1mm"
                     padding-end="2mm"><fo:block
text-align="end">81.95</fo:block></fo:table-cell>
<fo:table-cell border-left-style="solid"
                     border-left-width=".1mm"
                     border-bottom-style="solid"
                     border-bottom-width=".1mm">
<fo:block text-align="center">1277.17 &#x20AC;</fo:block></fo:table-cell>
</fo:table-row>

</fo:table-body>
</fo:table>
</fo:footnote-body>
</fo:footnote>
</fo:block>
<fo:block id="last"></fo:block>
<!-- table end -->
</fo:flow>
</fo:page-sequence>
</fo:root>
Comment 2 J.Pietschmann 2002-05-17 08:06:07 UTC
The whole footnote is dropped. This could have something to do with that the
footnote would have to be spilled to the next page, which wouldn't have been
rendered if there were no footnote to spill. This test case exposes one
of the more challenging problems of typesetting footnotes.
Comment 3 Oleg Tkachenko 2002-11-19 18:51:41 UTC

*** This bug has been marked as a duplicate of 8819 ***
Comment 4 Glenn Adams 2012-04-01 13:54:26 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs