W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2008

keep-with-next on fo:table-row

From: Vincent Hennebert <vincent.hennebert@anyware-tech.com>
Date: Mon, 25 Feb 2008 12:30:46 +0000
Message-ID: <47C2B4F6.6050806@anyware-tech.com>
To: xsl-editors@w3.org
CC: fop-dev@xmlgraphics.apache.org

Dear XSL Editors,

as fo:table-row does not generate any area, the text in section 4.8, 
“Keeps and Breaks” of the XSL-FO 1.1 Recommendation can’t be interpreted  
as is for this element.
The question is: if keep-with-next is set on fo:table-row, shall we 
consider that this is equivalent to setting keep-with-next on the last 
child block of /every/ cell ending on this row? In which case the first 
illustration below would not be acceptable.

Or can we consider that this is as if keep-with-next were set on every 
fo:table-cell element ending on the row (although keeps don’t apply to 
fo:table-cell). Then the first illustration below would be acceptable 
as, although it would be empty, cell 2.1 would still generate an area on 
the second page.

Illustration:
  <fo:table-row keep-with-next="always">
    <fo:table-cell>
      <fo:block>Cell 1.1 Line 1</fo:block>
      <fo:block>Cell 1.1 Line 2</fo:block>
      <fo:block>Cell 1.1 Line 3</fo:block>
    </fo:table-cell>
    <fo:table-cell>
      <fo:block>Cell 1.2 Line 1</fo:block>
      <fo:block>Cell 1.2 Line 2</fo:block>
    </fo:table-cell>
  </fo:table-row>
  <fo:table-row>
    <fo:table-cell>
      <fo:block>Cell 2.1 Line 1</fo:block>
      <fo:block>Cell 2.1 Line 2</fo:block>
    </fo:table-cell>
    <fo:table-cell>
      <fo:block>Cell 2.2 Line 1</fo:block>
      <fo:block>Cell 2.2 Line 2</fo:block>
    </fo:table-cell>
  </fo:table-row>

So is the following rendering correct:
  _____________________________________
  |                 |                 |
  | Cell 1.1 Line 1 | Cell 1.2 Line 1 |
  | Cell 1.1 Line 2 | Cell 1.2 Line 2 |

 --------------------------------------- Page break

  | Cell 1.1 Line 3 |                 |
  |_________________|_________________|
  |                 |                 |
  | Cell 2.1 Line 1 | Cell 2.2 Line 1 |
  | Cell 2.1 Line 2 | Cell 2.2 Line 2 |
  |_________________|_________________|


or can it only be like the following:
  _____________________________________
  |                 |                 |
  | Cell 1.1 Line 1 | Cell 1.2 Line 1 |

 --------------------------------------- Page break

  | Cell 1.1 Line 2 | Cell 1.2 Line 2 |
  | Cell 1.1 Line 3 |                 |
  |_________________|_________________|
  |                 |                 |
  | Cell 2.1 Line 1 | Cell 2.2 Line 1 |
  | Cell 2.1 Line 2 | Cell 2.2 Line 2 |
  |_________________|_________________|


Thanks,
Vincent Hennebert


-- 
Vincent Hennebert                            Anyware Technologies
http://people.apache.org/~vhennebert         http://www.anyware-tech.com
Apache FOP Committer                         FOP Development/Consulting
Received on Monday, 25 February 2008 12:29:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 11:00:00 GMT