Hi,
I have been trying to use multiple sorts on a long xml file using XSLT 2.0, which each one of the xml elements look like:
<song>
<title>(I Just) Died In Your Arms Tonight</title>
<category>Rock</category>
<album>80 Popular Hits</album>
<artist>Cutting Crew</artist>
<date added="02-03-2009"/>
</song>
This is my XSL snippet, and I want to sort it by title,then category and then album.
<xsl:template match="song">
<xsl:apply-templates>
<xsl:sort select="title"/>
<xsl:sort select="category"/>
<xsl:sort select="artist"/>
</xsl:apply-templates>
</xsl:template>
Yet, I don't see any sorting going on, and not even title. What have I done wrong here?
Thanks for your help.