This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Summing over nodes belonging to different ns


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]