This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: adding variables in xsl


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]