>From xml-tech-bounce@xmlfr.org Wed Oct 6 17:50:40 2004
>...
Erratum dans le precendent message, il fallait lire :
<xsl:template match="commande">
<xsl:param name="accumulator" select="1"/>
<xsl:variable name="curent-product"
select="$accumulator + @prix_unitaire * @quantite"/>
<xsl:variable name="next-command" select="following-sibling::commande[1]"/>
<xsl:choose>
<xsl:when test="$next-command">
<xsl:apply-templates select="$next-command">
<xsl:with-param name="accumulator" select="$current-product"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise><xsl:value-of select="$current-product"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
Hope this helps,
J.-M. Hufflen
--
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)
Received on Wed Oct 6 18:05:27 2004