Subject: Re: [xsl] Trouble grouping with for-each-group and sort From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 17 Mar 2010 19:23:49 +0100 |
I have a collection of data that I'm trying to sort, but am having difficulty with the for-each-group and sort operations. ... <xsl:for-each-group select="current-group()" group-by="myns:E"> <xsl:sort select="current-grouping-key()" data-type="number"/> <xsl:sort select="myns:G/myns:sub3/myns:inner" data-type="number"/> <xsl:call-template name="process-data" > <xsl:with-param name="data-set" select="current-group()"/> </xsl:call-template> </xsl:for-each-group> ... All the other data is grouped and sorted fine, except for the last sort on "inner".
Any ideas why the last sort doesn't appear to work?
Does a data-type of "number" for sorting correctly process numbers with decimal points?
Am I using the wrong select on the parameter for process-data?
Is current-group() at that point not the sorted data that I think it should be?
Is there a limit on nested for-each-group operations?
-- XSLT/XQuery training: San Carlos, California 2010-04-26/30 Principles of XSLT for XQuery Writers: San Francisco,CA 2010-05-03 XSLT/XQuery training: Ottawa, Canada 2010-05-10/14 XSLT/XQuery/UBL/Code List training: Trondheim,Norway 2010-06-02/11 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Trouble grouping with for, Michael Kay | Thread | RE: [xsl] Trouble grouping with for, Michael Kay |
RE: [xsl] Trouble grouping with for, Michael Kay | Date | RE: [xsl] Trouble grouping with for, Michael Kay |
Month |