Это:
Код:
<xsl:attribute name="text-align">justify</xsl:attribute>
заменить на
Код:
<xsl:attribute name="text-align">left</xsl:attribute>
и буквы перестанут растягиваться. Я вообще использую:
Код:
<xsl:attribute-set name="text">
<xsl:attribute name="font-family">times</xsl:attribute>
<xsl:attribute name="text-align">left</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
<xsl:attribute name="font-weight">normal</xsl:attribute>
<xsl:attribute name="text-decoration">none</xsl:attribute>
</xsl:attribute-set>
...
<fo:root xsl:use-attribute-sets="text">
<fo:layout-master-set>
<fo:simple-page-master master-name="A4-portrait"
page-width="21cm"
page-height="29.7cm"
margin-top="1.0cm"
margin-right="1.0cm"
margin-bottom="1.0cm"
margin-left="2.0cm">
<fo:region-body margin-top="1.0cm" margin-bottom="0.0cm" />
<fo:region-before extent="1.0cm" /> <!-- header -->
<fo:region-end extent="0.0cm" /> <!-- right sidebar -->
<fo:region-after extent="0.0cm" /> <!-- footer -->
<fo:region-start extent="0.0cm" /> <!-- left sidebar -->
</fo:simple-page-master>
<fo:simple-page-master master-name="A4-landscape" page-width="29.7cm" page-height="21cm">
<fo:region-body />
</fo:simple-page-master>
</fo:layout-master-set>
</fo:root>
и весь текст идет так как сказано. Это чтобы не делать так, как я тут вижу:
Код:
<fo:block xsl:use-attribute-sets="text_contract">
...
</fo:block>
<fo:block xsl:use-attribute-sets="text_contract">
...
</fo:block>
<fo:block xsl:use-attribute-sets="text_contract">
...
</fo:block>
Т.е. не плодить для каждого блока:
Код:
xsl:use-attribute-sets="blah"
Чтобы сделать 3 колонки создаем не 3 шт. table-column, а 5 шт., при этом дополнительные 2 будут не:
Код:
<fo:table-column column-width="proportional-column-width(1)" />
а, например:
Код:
<fo:table-column column-width="0.5cm" />
чтобы разделить крайние колонки от средней, т.е. что то типа этого:
Код:
<fo:table table-layout="fixed">
<fo:table-column column-width="proportional-column-width(1)" />
<fo:table-column column-width="0.5cm" />
<fo:table-column column-width="proportional-column-width(1)" />
<fo:table-column column-width="0.5cm" />
<fo:table-column column-width="proportional-column-width(1)" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>колонка 1</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block />
</fo:table-cell>
<fo:table-cell>
<fo:block>колонка 2</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block />
</fo:table-cell>
<fo:table-cell>
<fo:block>колонка 3</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
А что, fo:list-block / fo:list-item для списков уже под запретом?