[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: adding variables in xsl

Subject: RE: adding variables in xsl
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 12 Mar 2002 13:28:49 -0000
adding variables in xslt
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.