XML technologies / XSL-FO / Reference / Attributes in XSL-FO / ends-row

(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

Recommendation section: 7.28.11

Category: 7.28 Table Properties

Description

When set on a table cell (<fo:table:cell>), this property ends the table row after that cell. If the table contains <fo:table:row>, which normally groups cells into a row and controls row breaks, that element always takes precedence.

Values

true

This value confirms the end of the table row.

false

This value prevents the table row from ending.

Default value: false

XSL-FO version: 1.0

Allowed in:

<fo:table-cell>

This element places data in a table cell.

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="26mm 25mm 41mm
                        25mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten">
<fo:flow flow-name="xsl-region-body" font-family="Arial Unicode MS">
<fo:table>
<fo:table-column column-width="25%"/>
<fo:table-column column-width="25%"/>
<fo:table-column column-width="25%"/>
<fo:table-column column-width="25%"/>
<fo:table-header background-color="#4F491D">
<fo:table-cell text-align="center" border="black solid
                      1pt" color="#FFFFFF">
<fo:block>
Kopfzelle 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt" color="#FFFFFF">
<fo:block>
Kopfzelle 2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt" color="#FFFFFF">
<fo:block>
Kopfzelle 3
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" ends-row="true" border="black solid
                      1pt" color="#FFFFFF">
<fo:block>
Kopfzelle 4
<fo:block/>
ends-row="true"
</fo:block>
</fo:table-cell>
</fo:table-header>
<fo:table-body background-color="#F38222">
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zelle 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zelle 2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt" ends-row="true">
<fo:block>
Zelle 3
<fo:block/>
ends-row="true"
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" ends-row="true" border="black solid
                      1pt">
<fo:block>
Zelle 4
<fo:block/>
ends-row="true"
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zelle 5
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zelle 6
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zelle 7
</fo:block>
</fo:table-cell>
<fo:table-cell ends-row="true" text-align="center" border="black solid
                      1pt">
<fo:block>
Zelle 8
<fo:block/>
ends-row="true"
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zelle 9
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zelle 10
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zelle 11
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" ends-row="true" border="black solid
                      1pt">
<fo:block>
Zelle 12
<fo:block/>
ends-row="true"
</fo:block>
</fo:table-cell>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download the examples

In the output:

Excerpt from the W3C Recommendation:

More information online about

Rendering of the property in the XSL-FO reference

back to top