Technologies XML / XSL-FO / Référence / Attributs de XSL-FO / table-omit-header-at-break

(Extrait de « XSL-FO ― Die Referenz » de Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

Section de la recommandation : 7.28.18

Catégorie : 7.28 Propriétés des tableaux

Description

Pour une table (<fo:table>) divisée en plusieurs parties par des sauts de page ou de colonne, cet attribut précise si l’en-tête (<fo:table-header>) apparaît sur chaque page ou dans chaque colonne. Il peut être affiché uniquement sur la première page ou colonne contenant la table, ou sur toutes les pages ou colonnes.

Valeurs

true

Cette valeur indique que l’en-tête de table apparaît uniquement sur la première page ou dans la première colonne.

false

Cette valeur indique que l’en-tête de table apparaît sur toutes les pages ou dans toutes les colonnes sur lesquelles la table est répartie.

Hérité :

oui

Valeur par défaut : false

Version XSL-FO : 1.0

Autorisé dans :

<fo:table>

Cet élément crée un tableau.

Prise en charge :

Niveau de conformité

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

Étendu

O

O

O

O

O

Exemple XSL-FO :

<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>

Télécharger les exemples

Dans la sortie :

Page 2

Page 3

Page 4

Extrait de la recommandation du W3C :

Informations complémentaires en ligne sur

Présentation de la propriété dans la référence XSL-FO

haut de page