Tecnologías XML / XSL-FO / Referencia / Atributos de XSL-FO / starts-row

(Extracto de «XSL-FO ― Die Referenz» de 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

Sección de la recomendación: 7.28.15

Categoría: 7.28 Propiedades de tablas

Descripción

Cuando se establece en una celda (<fo:table:cell>), esta propiedad inicia una fila después de esa celda. Solo se aplica si la celda está definida directamente en el encabezado (<fo:table-header>), pie (<fo:table-footer>) o cuerpo (<fo:table-body>). Así pueden construirse tablas sin elementos <fo:table-row>.

Valores

true

Este valor fuerza el comienzo de una fila de tabla.

false

Este valor no fuerza una nueva fila de tabla.

Valor predeterminado: false

Versión de XSL-FO: 1.0

Permitido en:

<fo:table-cell>

Este elemento coloca los datos en una celda de la 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="5mm 5mm 5mm
                      5mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten">
<fo:flow flow-name="xsl-region-body">
<fo:table>
<fo:table-column column-width="20%"/>
<fo:table-column column-width="30%"/>
<fo:table-column column-width="20%"/>
<fo:table-column column-width="30%"/>
<fo:table-header background-color="#4F491D">
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenkopf
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenkopf
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenkopf
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenkopf
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" starts-row="true" border="black solid
                      1pt">
<fo:block>
Tabellenkopf
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenkopf
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenkopf
</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true" text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenkopf
</fo:block>
</fo:table-cell>
</fo:table-header>
<fo:table-footer background-color="#4F491D">
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenfuß
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenfuß
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenfuß
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenfuß
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" starts-row="true" border="black solid
                      1pt">
<fo:block>
Tabellenfuß
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenfuß
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenfuß
</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true" text-align="center" border="black solid
                      1pt">
<fo:block>
Tabellenfuß
</fo:block>
</fo:table-cell>
</fo:table-footer>
<fo:table-body background-color="#F38222">
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" starts-row="true" border="black solid
                      1pt">
<fo:block>
Zeile 2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2
</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true" text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2
</fo:block>
</fo:table-cell>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>

Descargar los ejemplos

En la salida:

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