How do I merge multiple XML structures with XSLT 2.0 and XSL-FO by grouping them by their 1st child (-entry) and then sort them from a to z?
In detail from something like this:
<keyword>
<key-entry>example<key-entry>
<key-entry>hello</key-entry>
<key-entry>world</key-entry>
</keyword>
<keyword>
<key-entry>another example</key-entry>
<key-entry>with other data</key-entry>
</keyword>
<keyword>
<key-entry>example</key-entry>
<key-entry>nice to see you!</key-entry>
</keyword>
to something like this:
<fo:block>A</fo:block>
<fo:block>another example</fo:block>
<fo:block>with other data</fo:block>
<fo:block>E</fo:block>
<fo:block>example</fo:block>
<fo:block>hello</fo:block>
<fo:block>world</fo:block>
<fo:block>nice to see you!</fo:block>