Bonjour !!!
J'ai un soucis avec mon tableau et je n'arrive pas à trouver l'erreur...
Je vous envois le code correspondant.
Il me dit que mon table-body ne possède pas tous ses éléments (table-cell, table-row...)
Voila merci...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <fo:table-body> <xsl:apply-templates select="Tableau"/> </fo:table-body> <xsl:template match="Tableau"> <xsl:apply-templates select="Ligne"/> </xsl:template> <xsl:template match="Ligne"> <xsl:if test="count(ancestor::Tableau/Ligne) = 1"> <fo:table-row > <fo:table-cell text-align="center" border-left-color="black" border-left-style="solid" border-left-width="0.5pt"> <fo:block color="{$bleu}" padding-top="2pt" padding-bottom="2pt" > <xsl:apply-templates select="Cellule"/> </fo:block> </fo:table-cell> </fo:table-row> </xsl:if> <xsl:if test="count(ancestor::Tableau/Ligne) > 1 and position()!=last()"> <fo:table-row> <fo:table-cell text-align="center" border-left-color="black" border-left-style="solid" border-left-width="0.5pt" > <fo:block color="{$bleu}" padding-top="2pt" padding-bottom="2pt" > <xsl:apply-templates select="Cellule"/> </fo:block> </fo:table-cell> </fo:table-row> </xsl:if> <xsl:if test="count(ancestor::Tableau/Ligne) > 1 and position()=last()"> <fo:table-row> <fo:table-cell text-align="center" border-left-color="black" border-left-style="solid" border-left-width="0.5pt" border-right-color="black" border-right-width="0.5pt" border-right-style="solid"> <fo:block color="{$bleu}" padding-top="2pt" padding-bottom="2pt" > <xsl:apply-templates select="Cellule"/> </fo:block> </fo:table-cell> </fo:table-row> </xsl:if> </xsl:template> xsl:template match="Cellule"> <xsl:choose> <xsl:when test="@style='titre'"> <fo:table-cell text-align="center" border-left-color="black" border-left-style="solid" border-left-width="0.5pt" border-bottom-color="black" border-bottom-style="solid" border-bottom-width="0.5pt" > <fo:block color="{$bleu}" padding-top="2pt" padding-bottom="2pt" > <xsl:apply-templates select="Texte"/> </fo:block> </fo:table-cell> </xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose> </xsl:template>
Partager