From: Eric van der Vlist (vdv@dyomedea.com)
Date: 19/08/2002 - 21:06
On Mon, 2002-08-19 at 17:53, pcoustillas wrote:
> C pas dur à comprendre mais y a t'il une solution ?
>
> mon XML :
> <bal1/>
> <bal2>10</bal2>
>
> mon xsl :
>
> <xsl:value-of select="bal2 - bal1" />
>
> Le résulat : NaN
>
> et j'aurais voulu recevoir 10.
>
> Comment qu'on fais ?
Pourquoi ne pas rajouter un zero à gauche?
<xsl:value-of select="concat('0', normalize-space(bal2)) - concat('0',
normalize-space(bal1))" />
Cordialement,
Eric van der Vlist
--
Rendez-vous à Paris.
http://www.technoforum.fr/integ2002/index.html
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
--
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
|