this is my first stackoverflow question :
I have an XML file like this:
<ROOT>
<COLUMN ID="AA1">
<CAPTION>Some Text 1</CAPTION>
</COLUMN>
<COLUMN ID="AA1">
<CAPTION>Some Text 2</CAPTION>
</COLUMN>
<COLUMN ID="AA1">
<CAPTION>Some Text 3</CAPTION>
</COLUMN>
<COLUMN ID="AA2">
<CAPTION>Some Text 4</CAPTION>
</COLUMN>
<COLUMN ID="AA2">
<CAPTION>Some Text 5</CAPTION>
</COLUMN>
</ROOT>
and I want tranform it to this :
Result should be that all column IDs are grouped and the CAPTION concated in each group
I do not know the IDs value and I dont care about them. Just group by them.
this should by the result, two strings in this case :
"Some Text 1 Some Text 2 Some Text 3"
"Some Text 4 Some Text 5"
all this, using Xpath2
I am realy not sure if its can be done only with xpath expession, but I hope to...
Has someone an idea ?