XML technologies / XSL-FO / Reference / Compart XSL extensions / Attributes / leader-text-align

(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

Category: Erweiterte Properties for FO elements - cpfo:leader-text-align

Description

This attribute specifies the alignment of the element fo:leader.

Values:

start

end

The leader element is aligned with the end edge of the content area.

inside

The leader element is aligned with the inside edge of the content area.

outside

The leader element is aligned with the outside edge of the content area.

left

The leader element is aligned with the left edge of the content area.

right

The leader element is aligned with the right edge of the content area.

Initial value:

left

Inherited:

no

Element:

fo:leader

XSL-FO example:

<fo:root>
<fo:layout-master-set>
<fo:simple-page-master page-height="305mm" page-width="216mm" margin-top="12mm" margin-bottom="12mm" margin-left="17.5mm" margin-right="23.5mm" master-name="Police laufende Seite0">
<fo:region-body margin-bottom="20mm"/>
<fo:region-after extent="5mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence force-page-count="no-force" language="de" master-reference="Police laufende Seite0" format="1">
<fo:flow language="de" hyphenate="true" flow-name="xsl-region-body">
<fo:block font-size="10pt" font-family="Helvetica">
<fo:block>
<fo:block text-align-last="justify" text-align="justify">
Vertragsgrundlagen 
<fo:leader cpfo:leader-text-align="right" leader-length="100%" leader-pattern="dots"/>
</fo:block>
<fo:block text-align-last="justify" text-align="justify">
Versichertes Risiko 
<fo:leader cpfo:leader-text-align="right" leader-length.minimum="100%" leader-length.optimum="100%" leader-length.maximum="100%" leader-pattern="dots"/>
</fo:block>
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download the examples

In the output:

back to top