axf:text-align-string

(Auszug aus "XSL-FO ― Die Referenz" von 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 Spacing and Alignment >> Text Alignment

axf:text-align-string specifies the text alignment when text-align="<string>".

Value:start | center | end | inside | outside | left | right
Initial:end
Applies to:fo:block
Inherited:yes
Percentages:N/A

Values have the following meanings.

startSame as text-align or text-align-last.
centerSame as text-align or text-align-last.
endSame as text-align or text-align-last.
insideSame as text-align or text-align-last.
outsideSame as text-align or text-align-last.
leftSame as text-align or text-align-last.
rightSame as text-align or text-align-last.

Although the specification of <string> to fo:table-cell aligns the character position of decimal point, etc., there is no definition for the alignment of the whole character string. At a default, AH Formatter V6.3 displayed it right aligned according to the illustration of 17.5.4 Horizontal alignment in a column. AH Formatter V6.3 extends the alignment and makes it possible to align left or align center

XSL-FO sample:

<fo:root xml:lang="en" 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">

Antenna House, Inc.

Text alignment by text-align="<string>"

Specifying <string> to fo:table-cell aligns the position of specified letters such as a decimal point, however there is no regulation if a whole character string should be aligned on one side or the other. As a default setting, by following the illustration of CSS2 17.5.4 Horizontal alignment in a column, AH Formatter displays text in right-aligned. AH Formatter enables left-aligned and centered by extending this feataure.

No setting of text-align / axf:text-align-string

ABC

100

0.0

AAA.BBB

100000000

0.0001

AAA.BBBCCCC

100000000.12345

9990.0001

text-align="'.'" No setting of axf:text-align-string

ABC

100

0.0

AAA.BBB

100000000

0.0001

AAA.BBBCCCC

100000000.12345

9990.0001

text-align="'.'" axf:text-align-string="start"

ABC

100

0.0

AAA.BBB

100000000

0.0001

AAA.BBBCCCC

100000000.12345

9990.0001

text-align="'.'" axf:text-align-string="center"

ABC

100

0.0

AAA.BBB

100000000

0.0001

AAA.BBBCCCC

100000000.12345

9990.0001

text-align="'.'" axf:text-align-string="end"

ABC

100

0.0

AAA.BBB

100000000

0.0001

AAA.BBBCCCC

100000000.12345

9990.0001

text-align="'.'" axf:text-align-string="inside"

ABC

100

0.0

AAA.BBB

100000000

0.0001

AAA.BBBCCCC

100000000.12345

9990.0001

Download der Beispiele

Output:

Tipp der data2type-Redaktion:
Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: