[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|