XML technologies / XSL-FO / Reference / Attributes in XSL-FO / border-after-precedence

(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.1

Category: 7.28 Table Properties

Description

For bottom borders in tables, this attribute determines which style, width, and color specifications take priority when different table elements specify conflicting values. The after side depends on the prevailing writing direction. In Western writing (top to bottom, left to right), it is at the bottom. With another writing direction, it could be at the top.

Values

force

This value always gives these style, width, and color settings priority over settings in other table elements, regardless of their default or individually assigned priority.

integer

This value assigns a numeric priority to the element specifying the style, width, and color of a bottom border. Its number is compared with those of conflicting elements. The higher number takes priority.

Default value: <table>: 6, <table-cell>: 5, <table-column>: 4, <table-row>: 3, <table-body>: 2, <table-header>: 1, <table-footer>: 0

XSL-FO version: 1.0

Allowed in:

<fo:table> , <fo:table-body> , <fo:table-cell> , <fo:table-column> , <fo:table-footer> , <fo:table-header> and <fo:table-row>

Support:

Conformance level

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

Basic

Y

N

Y

Y

N

XSL-FO example:

<fo:root font-family="Arial" font-size="20pt" 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 55mm 41mm
                        55mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten">
<fo:flow flow-name="xsl-region-body">
<fo:table-and-caption>
<fo:table text-align="center">
<fo:table-body>
<fo:table-row border-after-precedence="6" padding="6pt" border-after-width="3pt" border-after-style="dotted" border-after-color="black">
<fo:table-cell border-after-precedence="1" padding="6pt" border-after-width="3pt" border-after-style="dotted" border-after-color="red">
<fo:block>
 oben links 
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
 oben rechts 
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row border-before-precedence="6" padding="6pt" border-after-width="3pt" border-before-style="dotted" border-after-color="red">
<fo:table-cell>
<fo:block>
 unten links 
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
 unten rechts
              
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-and-caption>
</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