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

get the sum of a sequence of numbers

Subject: get the sum of a sequence of numbers
From: Karen McAdams <kemcadams@xxxxxxxxx>
Date: Tue, 25 Apr 2006 15:08:42 -0700 (PDT)
sum numbers xml
I think this should be easy to do but techniques I am using arent working.

I have template that returns the word count of topics that contain language attributes and assigns it to a sequence. T

Problem is that when I want total the numbers stored in the sequence using <xsl:variable name="mbt" select="sum(number($mb))"/> what I get are the numbers concatenated together when what I want is the total sum of the values of numbers of which the list consists.  Suggestions on the correct way to do this in XSL2.0? thanks.
 
--------------------Karen McAdams 

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.