Bonjour,
J'utilise le langage xsl fo et xml avec la bibliothèque FOP pour générer un PDF.
Ma conversion fonctionnait très bien jusqu'à ce que j'essaye de mettre en forme mes données avec un tableau.
Voici le bloc contenant mon tableau. (Si j'enlève la partie suivante du xsl fo tout fonctionne bien)
Merci d'avance pour votre aide ..
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
53
54
55
56
57
58 <fo:block font-size="26pt" font-family="sans-serif" line-height="26pt" space-after.optimum="0pt" text-align="center"> <fo:table-and-caption> <fo:table> <fo:table-column column-width="20%"/> <fo:table-column column-width="80%"/> <fo:table-header> <fo:table-cell> <fo:block font-weight="bold">Prix de l'heure</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-weight="bold">Nombre d'heure(s)</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-weight="bold">Remise</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-weight="bold">TVA</fo:block> </fo:table-cell> <fo:table-cell> <fo:block font-weight="bold">Total</fo:block> </fo:table-cell> </fo:table-header> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block><xsl:value-of select="facture/detailFacture/prixH" /></fo:block> </fo:table-cell> <fo:table-cell> <fo:block><xsl:value-of select="facture/detailFacture/nbHeures" /></fo:block> </fo:table-cell> <fo:table-cell> <fo:block><xsl:value-of select="facture/detailFacture/remise" /></fo:block> </fo:table-cell> <fo:table-cell> <fo:block><xsl:value-of select="facture/detailFacture/tva" /></fo:block> </fo:table-cell> <fo:table-cell> <fo:block><xsl:value-of select="facture/adherant/montant" /></fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:table-and-caption> </fo:block>
Partager