1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
<?xml version="1.0" encoding="ISO-8859-15"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0" >
<!--
26/02/2008 - Pozzo - Tentative de générer un tableau avec fop vers rtf
-->
<xsl:template match="Test">
<fo:root>
<fo:layout-master-set>
<!-- Une seule page -->
<fo:simple-page-master
master-name = "Test"
margin-left = "5mm"
margin-right = "5mm"
margin-bottom = "5mm"
margin-top = "5mm"
page-width = "210mm"
page-height = "297mm"
>
<!--
Declaration des regions
-->
<fo:region-body margin-top="45mm" margin-bottom="10mm" extent="232mm"/>
<fo:region-before margin-top="20mm" extent="20mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<!-- Definition des regions de la page -->
<fo:page-sequence master-reference="Test">
<!--
Entete de page
-->
<fo:static-content flow-name="xsl-region-before">
<fo:table table-layout="fixed" width="200mm">
<fo:table-column column-width="40mm"/>
<fo:table-column column-width="120mm"/>
<fo:table-column column-width="40mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>
<xsl:value-of select="/Test/Entete/Colonne1"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<xsl:value-of select="/Test/Entete/Colonne2"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<xsl:value-of select="/Test/Entete/Colonne1"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:static-content>
<!--
Corps de page
-->
<fo:flow flow-name="xsl-region-body" font-size="8pt">
<fo:block>
<xsl:text>Rien</xsl:text>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet> |
Partager