[Home] [By Thread] [By Date] [Recent Entries]
Mark wrote:
have an xml file like <Month> <Date day=b1b> <Session task=btask1b> <Notes hours-worked=b1.5b/> </Session> <Session task=btask2b> Notes hours-worked=b5b/> <Session task=btask1b> <Notes hours-worked=b3b/> </Session> </Date> <Date day=b2b> .... </Date> </Month> For the month, I want to sum all the hours-worked for each task: I think you want sum(current-group()/Notes/@hours-worked) you will need to throw out the 'for-each' inside the 'for-each-group' however -- Martin Honnen --- MVP Data Platform Development http://msmvps.com/blogs/martin_honnen/
|

Cart



