I have an XML file of following structure
<root>
<Row>
<KeyName>A</KeyName>
.....
</Row>
<Row>
<KeyName>B</KeyName>
.....
</Row>
<Row>
<KeyName>A</KeyName>
.....
</Row>
<Row>
<KeyName>B</KeyName>
.....
</Row>
<Row>
<KeyName>C</KeyName>
.....
</Row>
</root>
I would like to make an statement for a xml-fo transformation
I need to make a loop over all KeyNames, but each KeyName only once. My Problem is, that I don't know which KeyNames will be used and how often they appear. The structure/depth of the tree is constant.
Goal:
Block KeyName/text()=A
Row data
Row data
Row data
..
Block KeyName/text()=B
Row data
Row data
..
Continued for all existing (but unknown) KeyNames.