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.
start | Same as text-align or text-align-last. |
center | Same as text-align or text-align-last. |
end | Same as text-align or text-align-last. |
inside | Same as text-align or text-align-last. |
outside | Same as text-align or text-align-last. |
left | Same as text-align or text-align-last. |
right | Same 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. | |
| ||
| </fo:block> | |
| ||
| ||
| ||
| ||
| Text alignment by text-align="<string>" | |
| </fo:block> | |
| </fo:block> | |
| ||
| 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. | |
| </fo:block> | |
| ||
| No setting of text-align / axf:text-align-string | |
| </fo:block> | |
| ||
| ||
| ||
| ||
| ||
| <fo:block> | |
| ABC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBB | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBBCCCC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000.12345 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 9990.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| </fo:table> | |
| ||
| text-align="'.'" No setting of axf:text-align-string | |
| </fo:block> | |
| ||
| ||
| ||
| ||
| ||
| <fo:block> | |
| ABC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBB | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBBCCCC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000.12345 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 9990.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| </fo:table> | |
| ||
| text-align="'.'" axf:text-align-string="start" | |
| </fo:block> | |
| ||
| ||
| ||
| ||
| ||
| <fo:block> | |
| ABC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBB | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBBCCCC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000.12345 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 9990.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| </fo:table> | |
| ||
| text-align="'.'" axf:text-align-string="center" | |
| </fo:block> | |
| ||
| ||
| ||
| ||
| ||
| <fo:block> | |
| ABC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBB | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBBCCCC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000.12345 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 9990.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| </fo:table> | |
| ||
| text-align="'.'" axf:text-align-string="end" | |
| </fo:block> | |
| ||
| ||
| ||
| ||
| ||
| <fo:block> | |
| ABC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBB | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBBCCCC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000.12345 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 9990.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| </fo:table> | |
| ||
| text-align="'.'" axf:text-align-string="inside" | |
| </fo:block> | |
| ||
| ||
| ||
| ||
| ||
| <fo:block> | |
| ABC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBB | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 0.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| AAA.BBBCCCC | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 100000000.12345 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| 9990.0001 | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| </fo:table> | |
| </fo:flow> | |
| ||
| </fo:root> |
Output:
Tipp der data2type-Redaktion: Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: |