This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: adding variables in xsl
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 12 Mar 2002 13:28:49 -0000
- Subject: RE: [xsl] adding variables in xsl
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@ntlworld.com
work: Michael.Kay@softwareag.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Ard
> Schrijvers
> Sent: 12 March 2002 12:52
> To: xsl-list@lists.mulberrytech.com
> 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