Re: [xsl] How to sort by elements of a function output?

Subject: Re: [xsl] How to sort by elements of a function output?
From: Leo Studer <leo.studer@xxxxxx>
Date: Fri, 24 Apr 2009 22:44:39 +0200
David, Ken and Michael, thanks for the fast replay!

... indeed, it was a namespace problem.
The solution to build a variable and then to sort it works fine for me...


 <xsl:variable name="rows" as="element(xhtml:tr)+">
   <xsl:for-each-group select="/results/match" group-by="team">
     <xsl:copy-of
  select="my:MakeTableRow(current-grouping- key(),current-group())"/>
   </xsl:for-each-group>
 </xsl:variable>
 <xsl:for-each select="$rows">
    <xsl:sort select="xhtml:td[8]"/>
    <xsl:copy-of select="."/>
 </xsl:for-each>

Thanks again Leo

Current Thread