I have a problem where I have an xml content with different keys needs to be grouped together and displayed, when displayed there is a pagination so I can't display all entries on the same page, I'm using for-each-group for grouping the items, and loop through each current-group() and display its item, the xml is something like this:
Code:
<entry>
<key> key1</key>
<value> value1</value
</entry>
<entry>
<key> key2 </key>
<value> value2</value>
</entry>
<entry>
<key> ke1 </key>
<value> value3 </value>
</entry
I need to display something like:
key1
value1
value2
key2
value2
there are a lot of items like this and I need to paginate it 10 at each page, the current xsl without pagination is something like this:
Code:
<xsl:for-each-group select="entry" group-by="key">
<xsl:value-of select="current-grouping-key()"/>
<xsl:for-each select="current-grouping()">
<xsl:apply-templates select="." />
</xsl:for-each>
</xsl:for-each-group>