<work count="3">Thanks for the memory</work> <work count="1">The week-end of a private secretary</work> <work count="6">Squeeze me</work> <work count="1">Shoutin' in the Amen corner</work> . . . <sortedlist> <xsl:for-each select="work [@count > 7]"> <xsl:sort select="@count" order="descending" data-type="number"/> <xsl:copy-of select="."/> </xsl:for-each> </sortedlist>