[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Help with 3-level deep XML


Subject: [xsl] Help with 3-level deep XML
From: Bhaskar <bhaskarji@xxxxxxxxxxx>
Date: Wed, 16 May 2007 12:08:11 +0000

Hi,

I need help with a transformation I am trying to do. The XML is:




      26


      -36




      14


      42




I am basically trying to get the sum of third-level deep elements categorized
by their names. That is, the output will be:
ccc1   40 (26+14)
ccc2   6 (-36+42)

I wouldn't know any of the node names (aaa1, bbb1, ccc1, etc) apriori, so I
can't check for these names in the XSL - essentially I am trying to get a
general solution.

Any help/idea would be appreciated.

Thanks.



_________________________________________________________________
Catch the cricket action with MSN!
http://content.msn.co.in/Sports/Cricket/Default.aspx


Current Thread
Keywords