Try:
sum(for $n in $mb return number($n))
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Karen McAdams [mailto:kemcadams(_at_)yahoo(_dot_)com]
Sent: 25 April 2006 23:09
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] get the sum of a sequence of numbers
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--