Alignment is set using the text-align
attribute. Don't forget, that you have to use values
start and end -
because start of the text is not always on the left.
Source
<
fo:root xmlns:fo="
http://www.w3.org/1999/XSL/Format" >
<
fo:layout-master-set>
<
fo:simple-page-master master-name="simple">
<
fo:region-body/>
</
fo:simple-page-master>
</
fo:layout-master-set>
<
fo:page-sequence master-reference="simple">
<
fo:flow flow-name="xsl-region-body">
<
fo:block text-align="start">Block aligned to start.</
fo:block>
<
fo:block text-align="center">Block aligned to center.</
fo:block>
<
fo:block text-align="end">Block aligned to end.</
fo:block>
</
fo:flow>
</
fo:page-sequence>
</
fo:root>