RE: [xsl] adding variables in xsl

Subject: RE: [xsl] adding variables in xsl
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 12 Mar 2002 13:28:49 -0000
You can't do this procedurally in XSLT, you need to do it declaratively.

It's probably something like sum(*/@hour), but you'll have to describe the
input and output in more detail.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Ard
> Schrijvers
> Sent: 12 March 2002 12:52
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] adding variables in xsl
>
>
>
> I want to add numbers in a for each loop  to a variable in xsl.
> something like this: $hours = $hours + select="hour"
> I would want hours to get its own value plus the value of the select.
>
> Is it also possible to add numbers like 0.25 ( not integers)
>
> Thanks!!!
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread