[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi,
I am constrained to use XSLT 1.0 and hence am trying to convert my XSL that uses the for-each-group loop into one that uses just for-each loop by Muenchian method. Once I select out the groups I want (using a combination of for-each loop and xsl:key), is there a way for me to get the equivalent of current-group() without running through another for-each loop? This is the loop I am trying to convert:
<xsl:for-each-group select="//*[count(ancestor-or-self::*) = 3 group-by="@name">
<xsl:value-of select="sum(current-group()/descendant::value)"/>
Thanks for your help.
Bhaskar
_________________________________________________________________
Catch the complete World Cup coverage with MSN http://content.msn.co.in/Sports/Cricket/Default.aspx
[xsl] Alternative for current-group()
Subject: [xsl] Alternative for current-group() From: "Bhaskar _" <bhaskarji@xxxxxxxxxxx> Date: Wed, 04 Jul 2007 14:36:35 +0000 |
Hi,
I am constrained to use XSLT 1.0 and hence am trying to convert my XSL that uses the for-each-group loop into one that uses just for-each loop by Muenchian method. Once I select out the groups I want (using a combination of for-each loop and xsl:key), is there a way for me to get the equivalent of current-group() without running through another for-each loop? This is the loop I am trying to convert:
<xsl:for-each-group select="//*[count(ancestor-or-self::*) = 3 group-by="@name">
<xsl:value-of select="sum(current-group()/descendant::value)"/>
Thanks for your help.
Bhaskar
_________________________________________________________________
Catch the complete World Cup coverage with MSN http://content.msn.co.in/Sports/Cricket/Default.aspx
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Test for child node categ, Wendell Piez | Thread | Re: [xsl] Alternative for current-g, David Carlisle |
Re: [xsl] inserting page-break afte, Andreas Peter | Date | Re: [xsl] inserting page-break afte, Tony Graham |
Month |