[Home] [By Thread] [By Date] [Recent Entries]
On 14.01.2011 08:51, Robby Pelssers wrote:
Currently I'm using nested grouping but i was wondering if this is the best way. You could build a joint grouping key out of the attribute values: <xsl:template match="RefMaterial"> <RefMaterial> <xsl:apply-templates select="@*"/> <xsl:for-each-group select="Application" group-by="string-join((@Subst_ID, @ApplCode), '__')"> <xsl:copy-of select="." /><!-- first group item --> </xsl:for-each-group> </RefMaterial> </xsl:template>
|

Cart



