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

Re: Counting total of groups

Subject: Re: Counting total of groups
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 1 Jun 2006 12:37:29 +0100
counting groups
> I have seen that in XSLT 2.0 we have an incremental function 

not sure what you mean here, XSLT2 (and XSLT1, and other declarative
languages and a few hundred years of the use of "variable" in
mathematics) binds variables to values not to storage locations so you
can't "increment a variable" (by which you mean store a new value at the
location referenced by the variable).

Since yours is a grouping problem the solution would look a lot nicer in
XSLT2 which has xsl:for-each-group rather than the count(...key())
muenchian grouping idiom, but the facilities to get the group totals
(count() and last() would be the same. Whether to switch to XSLT2 now
(before it's a final rec and while there's really only one stable
implementation) depends on where you need to deploy the code, and on
commercial/political issues relating to when's a good time to switch to
new versions.


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

Current Thread


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

Buy Stylus Studio Now

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.
First Name
Last Name
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-2013 All Rights Reserved.