You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/03/06 11:59:37 UTC

DO NOT REPLY [Bug 44545] Keep together do not work correctly on spanning table rows

https://issues.apache.org/bugzilla/show_bug.cgi?id=44545


Vincent Hennebert <vi...@anyware-tech.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #1 from Vincent Hennebert <vi...@anyware-tech.com>  2008-03-06 02:59:37 PST ---
Hi,

Unfortunately you're hitting a corner case that is not well described by the
XSL-FO Recommendation.

I for myself would say that FOP's behaviour is correct: the row is actually
displayed in only one block on the first page. The content on the second page
actually corresponds to the last two rows. keep-together is an inherited
property but doesn't apply to fo:table-cell, so the fact that cell "1" is split
on two pages would not be wrong.

If you want to have the row-spanning cell kept on one page, set keep-together
on every spanned table-row, plus keep-with-next on each of them but the last
one:
    <fo:table-row keep-together="always" keep-with-next="always">
      <fo:table-cell number-rows-spanned="3" border=".5pt solid black">
        <fo:block>1</fo:block>
      </fo:table-cell>
      <fo:table-cell border=".5pt solid black">
        <fo:block>2.1</fo:block>
      </fo:table-cell>
    </fo:table-row>
    <fo:table-row keep-together="always" keep-with-next="always">
      <fo:table-cell border=".5pt solid black">
        <fo:block>2.2</fo:block>
      </fo:table-cell>
    </fo:table-row>
    <fo:table-row keep-together="always">
      <fo:table-cell border=".5pt solid black">
        <fo:block>2.3</fo:block>
      </fo:table-cell>
    </fo:table-row>

I'm leaving this bug open and ask for other opinions on this topic. But this is
probably a candidate for another request for clarification to xsl-editors@.

Vincent Hennebert


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.