XML technologies / XSL-FO / Reference / Attributes in XSL-FO / table-omit-header-at-break
(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
Recommendation section: 7.28.18
Category: 7.28 Table Properties
Description
For a table (<fo:table>) split into several parts by page or column breaks, this attribute specifies whether the table header (<fo:table-header>) appears on every page or in every column. It can be shown only on the first page or column containing the table, or on all pages or columns.
Values
true | This value specifies that the table header is shown only on the first page or in the first column. |
false | This value specifies that the table header is shown on every page or in every column across which the table is split. |
Inherited: | yes |
Default value: false
XSL-FO version: 1.0
Allowed in:
This element creates a table. |
Support:
Conformance level | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Extended | Y | Y | Y | Y | Y |
XSL-FO example:
<fo:root font-family="Arial" font-size="10pt" line-height="1.2em" 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">
<fo:layout-master-set>
<fo:simple-page-master master-name="Inhalt-Seiten" margin="0mm 0mm 0mm 0mm" page-height="297mm" page-width="210mm">
<fo:region-body margin="76mm 26mm 76mm 26mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten">
<fo:flow flow-name="xsl-region-body">
<fo:block-container keep-together.within-line="1">
<fo:table table-omit-header-at-break="true" margin-bottom="20mm">
<fo:table-header>
<fo:table-cell border="2pt solid" number-columns-spanned="2" width="100mm" height="20mm">
<fo:block font-family="Arial" font-size="23pt" line-height="30pt" font-weight="800">
HEADER
</fo:block>
</fo:table-cell>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-omit-header-at-break="false">
<fo:table-header>
<fo:table-cell border="2pt solid" number-columns-spanned="2" width="100mm" height="20mm">
<fo:block font-family="Arial" font-size="23pt" line-height="30pt" font-weight="800">
HEADER
</fo:block>
</fo:table-cell>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
<fo:table-cell border="2pt solid" height="50mm">
<fo:block/>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>In the output:

Page 2

Page 3

Page 4

Excerpt from the W3C Recommendation:
