[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Alternative for current-group()

Subject: Alternative for current-group()
From: "Bhaskar _" <bhaskarji@xxxxxxxxxxx>
Date: Wed, 04 Jul 2007 14:36:35 +0000
 Alternative for current-group()
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.