Subject:XSLT Grouping Attribute Author:jake nguyen Date:10 Jan 2007 05:25 PM
I know this topic is everywhere and I been searching on the internet but I cant seem to find the answer.
I have a xml document that look something like this:
<A>
<B name="something">
<C name="N">
<D name = "x">
</D>
<D name ="x2">
</D>
</C>
<C name="M">
<D name ="x">
</D>
</C>
</B>
<B name ="nothing">
<C name="N">
<D name ="x">
</D>
</C>
</B>
</A>
What I would like for it to return is :
something
x = 2
x2 = 1
nothing 2
x = 1
I tried to use key() and such but it seem I cant find a way to group by B and D. I hope thats not so confusing. THank you if you can help me or point me somewhere.