Toukiii a écrit :
J'ai essayé des choses du style : <xsl:choose> <xsl:when test="//type[.='Debit']"> <xsl:value-of select="sum(//Montant)"/> </xsl:when > </xsl:choose> mais sa ne marche pas 
|
Normal, c'est n'importe quoi. XSLT, c'est pas du C ou du Java, c'est un langage fonctionnel basé sur des sélections et des templates.
Ici, tu peux récupérer chaque somme avec un unique xsl:value-of.
Commences par te demander comment sélectionner tous les Montant depuis ta racine (/)
Message édité par masklinn le 27-03-2009 à 19:17:19
---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?