XSL-FO Table à hauteur fixe

Je suis en train de générer un fichier pdf à l'aide de XSL-FO avec FOP.

Je veux afficher un tableau avec une hauteur fixe. La table peut aller sur plusieurs pages et j'aimerais qu'elle ait la même hauteur sur toutes les pages.

Je ne peux même pas semblent définir une hauteur fixe de la table sur une seule page.

J'ai essayé de réglage de la hauteur, min-height, max-hauteur sur la table et de la table de corps, mais rien ne semble être prise en compte. J'ai aussi essayé en utilisant différents processeurs de XSL-FO sans un peu de chance.

Petit échantillon:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:template match="/">
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
            <fo:layout-master-set>
                <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="1cm" margin-left="2cm" margin-right="2cm">
                    <fo:region-body margin-bottom="20mm"/>
                    <fo:region-after extent="10mm"/>
                </fo:simple-page-master>
            </fo:layout-master-set>
            <fo:page-sequence master-reference="simpleA4">
                <fo:flow flow-name="xsl-region-body">
                    <fo:block>
                        <fo:table table-layout="fixed" width="100%" height="10cm" border-style="solid" border-width="0.02cm">
                            <fo:table-column column-width="20%"/>
                            <fo:table-column column-width="20%"/>
                            <fo:table-column column-width="60%"/>
                            <fo:table-body>
                                <fo:table-row>
                                    <fo:table-cell>
                                        <fo:block>Col1</fo:block>
                                    </fo:table-cell>
                                    <fo:table-cell>
                                        <fo:block>Col2</fo:block>
                                    </fo:table-cell>
                                    <fo:table-cell>
                                        <fo:block>Col3</fo:block>
                                    </fo:table-cell>
                                </fo:table-row>
                            </fo:table-body>
                        </fo:table>
                    </fo:block>
                </fo:flow>
            </fo:page-sequence>
        </fo:root>
    </xsl:template>
</xsl:stylesheet>
Le nombre de lignes varie?
Oui... Et la hauteur de chacun d'entre eux aussi... si il y a des lignes de rupture.

OriginalL'auteur david | 2012-06-13