[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] tail recursion and NaN


Subject: RE: [xsl] tail recursion and NaN
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Tue, 4 May 2004 08:58:24 +0300

Before DC asks,

> <!--this passes the price and gets the value for output-->
> <xsl:variable name="sum">
>         <xsl:call-template name="total-value">
>               <xsl:with-param name="price"
>                 		select="//z30-price"/>
>         </xsl:call-template>
> </xsl:variable>

Why not just use

  <xsl:variable name="sum" select="sum(//z30-price[number(.) = number(.)])"/>

or did I miss something?

Cheers,

Jarno - still the same Real Synthetic Audio <http://www.synthetic.org/play.html>


Current Thread