|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Sum function
Not that easy; you could follow the example on page 502 of XSLT Programmer's
Reference.
Or with saxon, use
saxon:sum(storvol, saxon:expression("noofbocks * blocksize"))
Mike Kay
Software AG
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Purnima
> Shankaran
> Sent: 08 March 2001 17:58
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Sum function
>
>
> Hi,
>
> I have an xml like this
>
> <storsys>
> <storvol>
> <noofblocks>2</noofblocks>
> <blocksize>3</blocksize>
> </storval>
> <storvol>
> <noofblocks>4</noofblocks>
> <blocksize>5</blocksize>
> </storval>
> </storsys>
>
> I want to display the total as sum of ( noofblocks *
> blocksize) for all
> <storval> tags present.
>
> Thanks for the help.
>
>
>
> 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
|

Cart








