Multiple groupings of XML nodes

It’s difficult to see how exactly the output relates to the input. Try this as your starting point: XSLT 1.0 <xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”> <xsl:output method=”xml” version=”1.0″ encoding=”UTF-8″ indent=”yes”/> <xsl:strip-space elements=”*”/> <xsl:key name=”transports-by-destination” match=”transports” use=”destination” /> <xsl:key name=”transports-by-assortment” match=”transports” use=”concat(destination, ‘|’, assortment)” /> <xsl:template match=”/*”> <xsl:copy> <!– for each unique destination –> <xsl:for-each select=”transports[count(. | key(‘transports-by-destination’, … Read more