Bonjour,
d'un niveau débutant je me retrouve totalement coincé.
J'ai un fichier xsl :
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 <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html"/> <xsl:template match="/"> <html> <head><title>OF</title></head> <body> <a name="haut"/> <center>Les OF</center> <br/> <xsl:for-each select="/XML4D_TraçabiliteProduitsSurgele/OF"> <center><xsl:value-of select="NUM_OF"/></center> Quantité nette à fabriquer : <xsl:value-of select="QUANTITE_OF"/><br/> Date de fabrication : <xsl:value-of select="DATE_OF"/> <center> <table border="1"> <tr> <th>Marque du produit</th> <th>Désignation du produit fini</th> <th>Date Limite d'Utilisation Optimale</th> <th>Quantité fabriquée (en unités)</th> <th>Poids Unitaire (en Kg)</th> </tr> <xsl:for-each select="OF_LOTPF"> <tr align="center" valign="middle"> <td><xsl:value-of select="LOTPF_marque_pf"/></td> <td><xsl:value-of select="LOTPF_designation_pf"/></td> <td><xsl:value-of select="LOTPF_DLUO_pf"/></td> <td><xsl:value-of select="LOTPF_quantiteFabriquee_pf"/></td> <td><xsl:value-of select="LOTPF_poidsUnitaire_pf"/></td> </tr> </xsl:for-each> </table> <br></br> <br></br> <br></br> </center> </xsl:for-each> </body> </html> </xsl:template>
Je voudrais avoir le total suivant :
la somme des multiplications entre le poids unitaire et les quantités fabriquées,
ce qui me permet de connaitre le total fabriqué en kg au final.
Comment faire ????
![]()
Merci pour votre aide !!
Partager