Re: [xsl] Sorting seems not to work completely

Subject: Re: [xsl] Sorting seems not to work completely
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Wed, 27 Jul 2011 20:27:22 +0100
On 27/07/2011 19:59, Mark wrote:
Hello Michael,
I'm not sure I understood the '+' in <xsl:for-each select+"current-group()">
It means I hit the shift key a millsecond too early. Intended was "=".

I tried the below template. [1] gives me the <Stamp> elements grouped under <Date> but not sorted by value. [2] gives me the <Stamp> elements sorted by value but not grouped under <Date>.

(2) looks correct (though "current()" can be replaced by "." with no change in meaning.) Can't see offhand why it wouldn't work.


Michael Kay
Saxonica

<!--[2]<xsl:copy-of select="current()" copy-namespaces="no"></xsl:copy-of>-->

Current Thread