xsl-list
[Top] [All Lists]

Re: sum partial of the text

2005-10-06 13:55:44
On 10/6/05, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
Here are five ways to sum over a computed quantity:

* In XPath 2.0, use sum(for $i in data return substring($i,7,4))

Of course, Mike meant:

sum(for $i in data return xs:double(substring($i,7,4)))


Cheers,
Dimitre Novatchev

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>