From: Pierre-Adrien Coustillas (pcoustillas@perinfo.com)
Date: 07/05/2002 - 08:13
Bonjour,
j'ai ceci :
ALGO :
pos=position()
affiche(pos)
a_raporter=(sum(...))
affiche(a_raporter)
CODE:
<xsl:variable name="pos" >
<xsl:value-of select="position()" />
</xsl:variable>
<xsl:value-of select="$pos" />
<xsl:variable name="a_reporter">
<xsl:value-of select="sum(../FCF[FCFSP=1 and ./@i <= $pos]/FCFNS) -
sum(../FCF[FCFSP=2 and ./@i <= $pos ]/FCFNS)" />
</xsl:variable>
<xsl:value-of select="$a_reporter" />
RESULTAT :
30 (ca c'est la valeur de pos)
9078 (ca c'est la valeur de a_raporter)
Le probleme est que lorsque je remplace $pos par 30 dans La somme, et ben
j'ai pas le meme resultat, je comprend pas pkoi.
qq'un a t'il une idée ?
Merci.
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|