Date: 2005-03-03T06:50:39
   Editor: JeremiasMaerki
   Wiki: XML Graphics - FOP Wiki
   Page: PageLayout/KnuthElementEvaluation

   Another attempt at identifying knuth elements

New Page:

= Knuth Element Evaluation for page breaking =

== Table with headers and footers ==

=== The XSL-FO snippet ===

<fo:table border="solid 2pt red">
    <fo:table-row border="solid 4pt blue">
    <fo:table-row border="solid 4pt green">
    <fo:table-row border="solid 1pt orange">
    <fo:table-row border="solid 1pt orange">

=== the three possibilities ===


=== the result ===

 * box(header's half border-before, w=2pt)
 * box(header, w=14.4pt)

 * box(border between header and row1, w=4pt)

 * box(row1, w=14.4pt)

 * penalty(p=0, w=4pt+14.4pt+4pt=height of footer + border between row1 and 
footer + border-after of footer) [1]
 * glue(border between row1 and row2, w=1pt, y=z=0) [2]

 * box(row2 first line, w=14.4pt)

 * penalty(p=0, w=4pt+14.4pt+4pt=height of footer + border between row2 first 
line and footer + border-after of footer) [3]

 * box(row2 second line, w=14.4pt)

 * box(border between row2 and footer, w=4pt)
 * box(footer, w=14.4pt)
 * box(footers's half border-after, w=2pt)

After a page break cause by a special penalty, the elements for the 
table-header must be added as first elements on the new page. The elements for 
the next page must be recalculated anyway (because of potentially different 
available IPD). Unused elements after the breaking element must be discarded.

(Note: The above is under the assumption that a non-look-ahead page breaking 
algorithm is implemented.)

[1] First break possibility

[2] This is no BP since the glue is not following a box.

[3] Second break possibility

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to