Subject: Re: [xsl] Help with 3-level deep XML From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 16 May 2007 14:32:19 +0200 |
Hi,
I need help with a transformation I am trying to do. The XML is:
26
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)
<l1> <l2> <l3a>234</l3a> <l3b>2755</l3b> </l2> <l2> <l3c>32</l3c> <l3b>76</l3b> <l3b>5345</l3b> <l3b>233</l3b> <l3c>43</l3c> </l2> <l2> <l3a>112</l3a> <l3a>987</l3a> </l2> </l1>
it will output this: l3a 1333 ( 234 + 112 + 987 ) l3b 8409 ( 2755 + 76 + 5345 + 233 ) l3c 75 ( 32 + 43 )
HTH, Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Help with 3-level deep XML, Bhaskar | Thread | RE: [xsl] Help with 3-level deep XM, Michael Kay |
RE: [xsl] <xsl:attribute issue, Michael Kay | Date | RE: [xsl] Help with 3-level deep XM, Michael Kay |
Month |