XML technologies / XSL-FO / Reference / Antenna House Formatter XSL Extensions / Properties / repeat-cell-content-at-break
(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Category Table
axf:repeat-cell-content-at-break specifies whether to copy the contents of a cell when a cell breaks.
Value: | true | false |
Initial value: | false |
Applies to: | fo:table-cell |
Inherited: | no |
Percentages: | N/A |
Values have the following meanings.
true | When the content of table cell fits in table-cell-area without breaking and table-cell-area breaks according to the break of other table-cell in the same row, or according to the break among the plural rows with number-rows-spanned, usually the content of table-cell-area becomes empty. When axf:repeat-cell-content-at-break is specified to table-cell, the content of the cell before break is copied and repeated. |
false | The content of the cell is not copied. |
XSL-FO sample:
<fo:root font-size="12pt" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<axf:document-info name="author" value="Alex Critchfield, Antenna House"/>
<axf:document-info name="keywords" value="extensions, table, cell, repeat, sample, example"/>
<axf:document-info name="subject" value="cell repeat marker extension"/>
<axf:document-info name="title" value="cell repeat marker extensions example"/>
<fo:layout-master-set>
<fo:simple-page-master page-width="8.5in" page-height="11in" master-name="main">
<fo:region-body region-name="body" margin-top="1in" margin-bottom="1in" margin-left=".75in" margin-right=".75in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:declarations>
<axf:space-after-punctuation code="." space="2in" language="en"/>
</fo:declarations>
<fo:page-sequence master-reference="main">
<fo:flow flow-name="body">
<fo:block span="all">
This page has a table that breaks across columns. The cell thats that are broken display the contents of the repeat marker after the break.
</fo:block>
<fo:block/>
<fo:block space-before="6in">
<fo:table width="4in" table-layout="fixed">
<fo:table-body>
<fo:table-row>
<fo:table-cell border="1pt solid black" padding="5pt" axf:repeat-cell-content-at-break="true">
<axf:table-cell-repeated-marker>
<fo:block>
<fo:inline>
[[see previous page]]
</fo:inline>
</fo:block>
</axf:table-cell-repeated-marker>
<fo:block>
cell with continued marker
</fo:block>
</fo:table-cell>
<fo:table-cell border="1pt solid black" padding="5pt" axf:repeat-cell-content-at-break="true">
<fo:block>
cell without continued marker
</fo:block>
</fo:table-cell>
<fo:table-cell border="1pt solid black" padding="5pt">
<fo:block>
cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>Output:

page 2