This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Summing over nodes belonging to different ns
- To: xsl-list at mulberrytech dot com
- Subject: Re: Summing over nodes belonging to different ns
- From: Sebastian Rahtz <sebastian dot rahtz at computing-services dot oxford dot ac dot uk>
- Date: Wed, 25 Oct 2000 16:24:37 +0100
- References: <D1E2ABC64386D211A4B00008C7A4F7A708E10A0C@n1013smx.nt.schwab.com>
- Reply-To: xsl-list at mulberrytech dot com
Parker, Daniel writes:
> <them:item xmlns:them="www.them.com">
> <them:value>2000</them:value>
> </them:item>
>
> </summary>
>
> is there a simple way of using the sum function to compute a grand total for
> the us:values and the them:values?
does
sum(*[contains(name(),'value')])
work? otherwise my first inclination would be to make two passes,
putting all the values into a new nodeset, and then using the nodeset
extension to process it and do a sum.
sebastian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list