You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by to...@sdm.de on 2008/05/02 10:49:38 UTC

Nested, multi-page tables and keep-with-previous

Hi,

I have a problem with the XSL-FO listed below - sorry for the lengthy example,
I tried to cut it down as much as possible (and hope that Outlook doesn't make
 too much of a mess of it).

Running FOP 0.95beta from the command line and producing a PDF output, I get no
warnings/errors and the expected text on the first page up until "LOOK HERE".
Then follows an empty second page and the end of the document, even though
there is some text left in the XSL-FO. I expected the text to be printed on the
2nd page.

Removing the attribute keep-with-previous.within-column='always' from the table
row below "LOOK HERE" makes the text on the 2nd page appear again.

FOP 0.94 behaves differently and does not hide any text, but breaks the table
apart a bit early imho (there seems to be plenty of place left at the bottom of
page 1).

The support for keep-with-previous should be partial, as per the compliance
page (http://xmlgraphics.apache.org/fop/compliance.html#fo-property-keep-with-previous).
The comments there read:
    * [0.20.5] works only in table rows
    * [0.94] works on all implemented FOs, except list- and table-related and
      inline-level FOs.
    * [0.95] works on all implemented FOs, except list- and inline-level FOs.
    * [0.94 and later] <integer> values are not supported.
I would expect my document not to work in 0.94 but to work in 0.95, as the usage
of keep-with-previous is table-related. Nevertheless, not showing parts of the
table is a bit unexpected.  Just ignoring the keep-with-previous attribute
would have been fine. :)

I would be happy for any pointers!

Cheers,
Torsten

PS. Any current estimates when 0.95 will be released?

PPS. I tried posting this via Nabble (as suggested here: http://xmlgraphics.apache.org/fop/maillist.html#fop-user-archive), but the message did not get through to the list. So now I subscribed normally and hope this works better :)


<?xml version="1.0" encoding="UTF-8"?>
<fo:root line-stacking-strategy='font-height' xmlns:fo='http://www.w3.org/1999/XSL/Format' xmlns:nsdc='http://www.rtf2fo.com/NSDC'>
  <fo:layout-master-set>
    <fo:simple-page-master page-width='595.35pt' margin-bottom='35.45pt' margin-top='35.45pt' margin-left='70.6pt' page-height='842pt' master-name='pm0' margin-right='51.05pt'>
      <fo:region-body margin-bottom='21.55pt' margin-top='35.15pt' overflow='visible' region-name='body' />
      <fo:region-before overflow='visible' region-name='header' extent='771.1pt' />
      <fo:region-after display-align='after' overflow='hidden' region-name='footer' extent='21.55pt' />
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence widows='2' orphans='2' master-reference='pm0'>
    <fo:flow flow-name='body'>
      <fo:table table-layout='fixed' width='100%'>
        <fo:table-column column-width='30pt' />
        <fo:table-column column-width='441pt' />
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell>
              <fo:block />
            </fo:table-cell>
            <fo:table-cell>
              <fo:table table-layout='fixed' width='100%' color='#262324' font-family='sans-serif'>
                <fo:table-column column-width='294pt' />
                <fo:table-column column-width='87pt' />
                <fo:table-column column-width='60pt' />
                <fo:table-body>
                  <fo:table-row keep-together.within-column='always' height='14.4pt'>
                    <fo:table-cell display-align='after'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxxxxx xxxxxxxxxxxxxxx xxxxx xxx </fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell display-align='center'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxx xxxxxxxxxxx  xxx xxxxxxxxx xxxxxxxxxxxx xxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxx xxxxxxxx xxxxxxxxx xxxxxxxxxxxx xx xxxxxxxxxxxxxxx xxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxx xxxxxxxxx xxxxxxxxxxxx xxxxxxxxxx xxxxxxx xxxxxx xxxxx xxxxxxxx xxxxxxxxxx xxxxxxxxx xxxxxxx x xxxxxxx x x xxxx xxx xxxxx xxx xxx xxxxxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxx. xx xxxxx xxxxxx xxxxxxxxxxxxxxx xxxxx xxx xxxxxxxxxxxxxx xxxxx xxxxx xxxxxxx. xxxxxx xxxxxxx xxx xxxxxxxxxxxxxxxx xx xxxxxx-, xxxx- xxx xxxxxxxxxxxxxx xxx xxxxxxxxxxxx xxxxxx xxxxxxxxx xxxxxxxxxxx xxxxxx xxxxxxxxxxxxxx xxxxxxxxxxxxx. xxx xxxxxx xxxxx xxx xxxxxxxxx xxx xxxxxxxx xxxxxxxxxxxxxxx xx xxxxxxxxxx xxxxxxxxxxxxx xxxxxxxx.</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxxxxxxxxxxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt' />
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt'>
                    <fo:table-cell display-align='after'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxxxxxxxxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell display-align='center'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxx xxxxx xxxxxxxx xxx xxxxxxxxxxxxxxxx xxx xxx xxxxxxxxxxxxxxx.</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxxxxxxxx xxxxxx xxxxxxxxx xxxxxxxx xxxxxxxxxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt' />
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt'>
                    <fo:table-cell display-align='after'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxxxxxx xxxxxxxx xxx xxxx xxxxxxxxxxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell display-align='center'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xx xxx xxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx xxx xxxxxxxxxxxxxx xxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (xxx). xx xxxx xxxxxxxxxxxxxx xxxxx xxxx xxx xx % xxx xxxxxxxxxxxxxxxxxx xx xxxxxx xxxxxxxxxx xxxxxx. xxx xxxxxxxxxxx xxxxxxxx xxx xxxxxxxxxxxxxxxx xxx xxxxxxxx, xxxxxxxx, xxxxxxxxxx, xxxxxxx xxx xxxxxxxxxx xxx xxxxxx xxxx xxxxxxxxxxxxxxxxxx xxx xxxxxxxxxxxx xxx x,xx%  xxxx. xxxxx xxxxx xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx.xx xxx xxxxxxxxxxx xxxxxxx-xxxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxx, xxx xxxxxxxxx xxxx xxxxxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxx xxx xxxx xxxxxxxxx xxxxxx. xxxxx xxxxxxxx xxxx xx xxx xxxx xxxxxxxxx xxxxxxxxxxxxxxxxx xxx xxx xxxxxx “xxxxxxx xxxxxxx“ xxxxxxxxxxxxxx. xxx xxx xxx xxxxxxxx xxx xxxxxxxxxxxxx xxx xxxxxxxxxxxxx xxxx xx xxx xxxxxxxxxxxxxxxxxxxxxxxx xxx xxx xxxxxxxxxxxxxxxxxxx xxxxxxxxxxx. xxxxx xxx xxxxxxx xxxxxx xxxxxxxxxxxxx xxxxxxxx, xxxxxxxx xxx xxxxx xxx xxxxx xxxxxxx.</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxxxxxxxxx xxxxxxxxxxxxxxxxxx xxx xxxxxxx-xxxxxxxxxxxxxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt' />
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='9pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='9pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='9pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='10pt'>xxxxxxxxxx xxxx xxx xxxxxxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='10pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='10pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell border-top='1.5pt solid #AAABA6' display-align='after' border-bottom='1.5pt solid #AAABA6'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell border-top='1.5pt solid #AAABA6' display-align='center' border-bottom='1.5pt solid #AAABA6'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxx xxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell border-top='1.5pt solid #AAABA6' border-bottom='1.5pt solid #AAABA6'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt' />
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell display-align='after'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxxxxxxxxxxxxxxxxxxxxxxxx xxx xxxxxxxxxxxx?</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell display-align='center'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxx xxxxx xxxxxx, xx xx xxxxxxxxx xxxxxxx xxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxx xxxxxxxxxxxx ?- xxx xxxxxxxxxxxxxxxxxxxxxxxxxx- xxxx xxxxxxxxxxxxxxxxxxxxxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt' />
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt'>
                    <fo:table-cell display-align='after'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxxxxxxxxxxxxxxxxxxxxxxxx xxxx xxxxxxxxxxxx?</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell display-align='center'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxx xxx xxxx xxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxx xx xxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxx xxxxxx:-	xxxxx xxxxxxxx-	xxxxxxxxxxxxxxxxxx: xxx xxxxxxxxxxxxxxxxxx xxxxxxx xxx xxx xxxxxxxx xxxxxxxx xxxxxxxxxxx. xxx xxx xxxxxxxxx xxx xxxxxxxxxxxxxxxxxx xxxx xxx xxx xxxxxxxxxxxxx, xxx xxx xxx xxxx xxxxxxxxxxx xxxxxxxxxxxxxxxxxx xxx xxxxxxxxx xxxxx xxxx xxxxxxxxxxx xxxxx xxx xxx xxxxxxxxxxxxxxx xxxxxxxxx.-	xxxxxxxxxxxxxxxxxx:  xx xxxxxxxxx xxxx xxx xxx xxxxxxxxx xxxxxxxx xxx xxxxxxxxxxxx xxxxxxxxx xxx xxx xxxx xxxxxxx xxxxxxxxxxx xxxxxxxxxxxxxxx xxxx xxxxxxxxxxx xxxxx xxx xxx xxxxxxxxxxxxxxx xxxxxxxxx. </fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxxxxxxxxxxx xxxxxxxxxxxxxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt' />
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='9pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='9pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='9pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='10pt'>xxxx xxxx xxxx xxxx xxxx xxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='10pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='10pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell border-top='1.5pt solid #AAABA6' display-align='after' border-bottom='1.5pt solid #AAABA6'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell border-top='1.5pt solid #AAABA6' display-align='center' border-bottom='1.5pt solid #AAABA6'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxx xxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell border-top='1.5pt solid #AAABA6' border-bottom='1.5pt solid #AAABA6'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt' />
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell display-align='after'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxxxxxxxxxx xxxxxxxxxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell display-align='center'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt' />
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt' />
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt'>
                    <fo:table-cell display-align='after'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxxxxxxxxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell display-align='center'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxxxxx xxx xxx xxxxxx, xxxxx xxxxxxxxxx xxxxx?</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt' />
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt'>
                    <fo:table-cell display-align='after'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxxxxxxx xxxxxxxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell display-align='center'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxxxxxxx xxx xxx xxxxxx, xxx xxxxxxxxxxxx xxxxxx xxxx.</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt' />
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='9pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='9pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='9pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='10pt'>LOOK HERE LOOK HERE</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='10pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='10pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell border-top='1.5pt solid #AAABA6' display-align='after' border-bottom='1.5pt solid #AAABA6'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell border-top='1.5pt solid #AAABA6' display-align='center' border-bottom='1.5pt solid #AAABA6'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxx xxxxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell border-top='1.5pt solid #AAABA6' border-bottom='1.5pt solid #AAABA6'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt' />
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell display-align='after'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'>xxxxxx xxxx xxx xxxxxxxxxxxx xxxxxxxx xxx?</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell display-align='center'>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-weight='bold' font-size='8pt'></fo:inline>
                      </fo:block>
                    </fo:table-cell>
                  </fo:table-row>
                  <fo:table-row keep-together.within-column='always' height='14.4pt' keep-with-previous.within-column='always'>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxxxxxxxxx xxxxx: xxx xxx xxxxxxxxxxxx xxxxxxxxx (xxxxxxxx) xxxxx: xxx xxxxxxxxxxx xxxxxx xxx xxxxxxxxxxxxxxxx xxxxxx xx xxxxxxxxxx, xxxx xxxx xxxx xxxx xxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxx xxxxxx. xxx xxxxxxxxxx xxxxx xxxx xx xxxx xxxxxxxxxxxxxx xxxxxxx xxxx xxxxx xxxxxx.</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt'>
                        <fo:inline font-size='8pt'>xxxxxxxxxx xxxxx</fo:inline>
                      </fo:block>
                    </fo:table-cell>
                    <fo:table-cell>
                      <fo:block text-align='start' line-height='10.05pt' />
                    </fo:table-cell>
                  </fo:table-row>
                </fo:table-body>
              </fo:table>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

Re: Nested, multi-page tables and keep-with-previous

Posted by Andreas Delmelle <an...@telenet.be>.
On May 2, 2008, at 12:20, Vincent Hennebert wrote:
> Andreas Delmelle wrote:
>>
>> FWIW: It doesn't render fine with FOP Trunk...
>
> This is because the fix was made in the 0.95 branch and hasn’t been
> merged back to the Trunk yet. I tried to render the file with the  
> ‘head’
> version of the 0.95 branch and the result was ok.

OK, my bad... Seems like Torsten is in luck. :-)

Cheers

Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Nested, multi-page tables and keep-with-previous

Posted by Vincent Hennebert <vi...@anyware-tech.com>.
Andreas Delmelle wrote:
> On May 2, 2008, at 11:30, Vincent Hennebert wrote:
>>
>> This is bug #44621 [1] (more precisely, comment #2). Assertions aren’t
>> enabled by default, otherwise you would have had an AssertionError. It
>> appears that FOP terminates normally but the generated PDF is obviously
>> wrong.
>>
>> It is fixed in the head of the 0.95 branch, so your file should be
>> rendered fine with the final 0.95 version.
>
> FWIW: It doesn't render fine with FOP Trunk...

This is because the fix was made in the 0.95 branch and hasn’t been
merged back to the Trunk yet. I tried to render the file with the ‘head’
version of the 0.95 branch and the result was ok.


> If you remove the table-nesting, it also works as expected. If the outer
> table's first column is used solely for the purpose of spacing, then
> maybe removing the nesting and using start-indent could be a viable
> workaround.
>
>
> Cheers
>
> Andreas


Vincent


-- 
Vincent Hennebert                            Anyware Technologies
http://people.apache.org/~vhennebert         http://www.anyware-tech.com
Apache FOP Committer                         FOP Development/Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


AW: Nested, multi-page tables and keep-with-previous

Posted by to...@sdm.de.
On May 2, 2008, at 11:41, Andreas Delmelle wrote:
> On May 2, 2008, at 11:30, Vincent Hennebert wrote:
> >
> > This is bug #44621 [1] (more precisely, comment #2). Assertions aren't 
> > enabled by default, otherwise you would have had an AssertionError. It 
> > appears that FOP terminates normally but the generated PDF is 
> > obviously wrong.
> >
> > It is fixed in the head of the 0.95 branch, so your file should be 
> > rendered fine with the final 0.95 version.
> 
> FWIW: It doesn't render fine with FOP Trunk...

As per Andreas' request I filed bug #44920.
  
> If you remove the table-nesting, it also works as expected. If the outer
> table's first column is used solely for the purpose of spacing, then maybe
> removing the nesting and using start-indent could be a viable workaround.

Yes, that would be a workaround. But as this effects a number of documents
which would have to be changed by hand (and are originally generated, thus not
really friendly on the eye) I would prefer a different solution ;)

Cheers,
Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Nested, multi-page tables and keep-with-previous

Posted by Andreas Delmelle <an...@telenet.be>.
On May 2, 2008, at 11:30, Vincent Hennebert wrote:
>
> This is bug #44621 [1] (more precisely, comment #2). Assertions aren’t
> enabled by default, otherwise you would have had an AssertionError. It
> appears that FOP terminates normally but the generated PDF is  
> obviously
> wrong.
>
> It is fixed in the head of the 0.95 branch, so your file should be
> rendered fine with the final 0.95 version.

FWIW: It doesn't render fine with FOP Trunk...

If you remove the table-nesting, it also works as expected. If the  
outer table's first column is used solely for the purpose of spacing,  
then maybe removing the nesting and using start-indent could be a  
viable workaround.


Cheers

Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Nested, multi-page tables and keep-with-previous

Posted by Vincent Hennebert <vi...@anyware-tech.com>.
Hi Torsten,

Torsten Blix wrote:
> Hi,
>
> I have a problem with the XSL-FO listed below - sorry for the lengthy example,
> I tried to cut it down as much as possible (and hope that Outlook doesn't make
>  too much of a mess of it).

FYI you can provide the FO file as an attachment. Actually this is the
recommended way because then you are sure your mail client won’t alter
it. Although in the present case it did well.


> Running FOP 0.95beta from the command line and producing a PDF output, I get no
> warnings/errors and the expected text on the first page up until "LOOK HERE".
> Then follows an empty second page and the end of the document, even though
> there is some text left in the XSL-FO. I expected the text to be printed on the
> 2nd page.

This is bug #44621 [1] (more precisely, comment #2). Assertions aren’t
enabled by default, otherwise you would have had an AssertionError. It
appears that FOP terminates normally but the generated PDF is obviously
wrong.

It is fixed in the head of the 0.95 branch, so your file should be
rendered fine with the final 0.95 version.


[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=44621


> Removing the attribute keep-with-previous.within-column='always' from the table
> row below "LOOK HERE" makes the text on the 2nd page appear again.
>
> FOP 0.94 behaves differently and does not hide any text, but breaks the table
> apart a bit early imho (there seems to be plenty of place left at the bottom of
> page 1).
> The support for keep-with-previous should be partial, as per the
> compliance
> page (http://xmlgraphics.apache.org/fop/compliance.html#fo-property-keep-with-previous).
> The comments there read:
>     * [0.20.5] works only in table rows
>     * [0.94] works on all implemented FOs, except list- and table-related and
>       inline-level FOs.
>     * [0.95] works on all implemented FOs, except list- and inline-level FOs.
>     * [0.94 and later] <integer> values are not supported.
> I would expect my document not to work in 0.94 but to work in 0.95, as the usage
> of keep-with-previous is table-related. Nevertheless, not showing parts of the
> table is a bit unexpected.  Just ignoring the keep-with-previous attribute
> would have been fine. :)
>
> I would be happy for any pointers!
>
> Cheers,
> Torsten
>
> PS. Any current estimates when 0.95 will be released?

It’s on its way. I’d say, probably within the next few weeks.

<snip/>

HTH,
Vincent


-- 
Vincent Hennebert                            Anyware Technologies
http://people.apache.org/~vhennebert         http://www.anyware-tech.com
Apache FOP Committer                         FOP Development/Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Nested, multi-page tables and keep-with-previous

Posted by Andreas Delmelle <an...@telenet.be>.
On May 2, 2008, at 10:49, <to...@sdm.de> <to...@sdm.de>  
wrote:

Hi

> I have a problem with the XSL-FO listed below - sorry for the  
> lengthy example,
> I tried to cut it down as much as possible (and hope that Outlook  
> doesn't make
>  too much of a mess of it).

No problem. It came through just fine, but maybe in the future it  
would be better if you just added it as an attachment.

> Running FOP 0.95beta from the command line and producing a PDF  
> output, I get no
> warnings/errors and the expected text on the first page up until  
> "LOOK HERE".
> Then follows an empty second page and the end of the document, even  
> though
> there is some text left in the XSL-FO. I expected the text to be  
> printed on the
> 2nd page.
>
> Removing the attribute keep-with-previous.within-column='always'  
> from the table
> row below "LOOK HERE" makes the text on the 2nd page appear again.

Definitely seems like buggy behavior in 0.95. Would you mind creating  
a Bugzilla entry for it, and add the FO as an attachment over there?

https://issues.apache.org/bugzilla/enter_bug.cgi?product=Fop

>
> PS. Any current estimates when 0.95 will be released?


If I judge correctly, this should be a matter of weeks, but no  
guarantees... Maybe your bug-report will keep us busy again for a few  
weeks more. ;-)


Thanks!


Andreas



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org