[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|