Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<mulexml:xslt-transformer name="xslt">
<xsl:stylesheet xmlns:xsl="" version="2.0">
<xsl:template match="/">
<xsl:for-each-group select="cities/city" group-by="@country">
<xsl:value-of select="@country"/>
<xsl:value-of select="current-group()/@name" separator=", "/>
<xsl:value-of select="sum(current-group()/@pop)"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.