Bonjour à tous!
Je suis un grand débutant avec fop, pouvez vous me dire pourquoi ce code ne permet pas de sauter des lignes?
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 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="simple" page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm">
<fo:region-body margin-top="1cm"/>
<fo:region-before extent="0cm"/>
<fo:region-after extent="1cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simple">
<fo:flow flow-name="xsl-region-body">
<fo:block font-family="Helvetica" font-size="8pt">
<xsl:apply-templates select="root/user"/>
<!--xsl:apply-templates select="root/dossier"/-->
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="user">
<fo:table space-before="10pt">
<fo:table-column column-width="3cm"/>
<fo:table-column column-width="3cm"/>
<fo:table-column column-width="13cm"/>
<fo:table-body>
<fo:block>
<fo:table-row>
<fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
<fo:block font-weight="bold">
Service
<!--xsl:value-of select="libelle/label2"/-->
</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
<fo:block font-weight="bold">
Service
<!--xsl:value-of select="libelle/label2"/-->
</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
<fo:block font-weight="bold">
Service
<!--xsl:value-of select="libelle/label2"/-->
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:block>
<fo:block>
<fo:table-row>
<fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
<fo:block font-weight="bold">
Service
<!--xsl:value-of select="libelle/label2"/-->
</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
<fo:block font-weight="bold">
Service
<!--xsl:value-of select="libelle/label2"/-->
</fo:block>
</fo:table-cell>
<fo:table-cell border-style="solid" padding="2pt" border-width="1pt" number-columns-spanned="2">
<fo:block font-weight="bold">
Service
<!--xsl:value-of select="libelle/label2"/-->
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:block>
</fo:table-body>
</fo:table>
<!--/fo:block-->
</xsl:template>
</xsl:stylesheet>
Merci à tous