Tecnologías XML / XSL-FO / Referencia / Atributos de XSL-FO / table-omit-header-at-break

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

Sección de la recomendación: 7.28.18

Categoría: 7.28 Propiedades de tablas

Descripción

Para una tabla (<fo:table>) dividida en varias partes por saltos de página o columna, este atributo especifica si el encabezado (<fo:table-header>) aparece en todas las páginas o columnas. Puede mostrarse solo en la primera página o columna que contiene la tabla, o en todas ellas.

Valores

true

Este valor indica que el encabezado de la tabla se muestra solo en la primera página o columna.

false

Este valor indica que el encabezado de la tabla se muestra en todas las páginas o columnas entre las que se divide la tabla.

Heredado:

sí

Valor predeterminado: false

Versión de XSL-FO: 1.0

Permitido en:

<fo:table>

Este elemento crea una tabla.

Compatibilidad:

Nivel de conformidad

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

Ampliado

S

S

S

S

S

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

Descargar los ejemplos

En la salida:

Página 2

Página 3

Página 4

Extracto de la recomendación del W3C:

Más información en línea sobre

Representación de la propiedad en la referencia de XSL-FO

volver arriba