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

RE: Re: Grouping problem?

Subject: RE: Re: Grouping problem?
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Tue, 22 Apr 2003 17:10:07 -0500
RE:  Re: Grouping problem?
Dimitre Novatchev wrote:
> Unfortunately, this does not produce the right result in the 
> general case.

I believe it does in the example data you gave, at least
as I understand Benjamin's definition of the problem.

> The result produced by your transformation is:
> 
> <root>
>   <ele sum="3"></ele>
>   <ele sum="4"></ele>
>   <ele sum="2"></ele>
>   <br />
>   <ele sum="10"></ele>
>   <ele sum="1"></ele>
>   <br />
>   <ele sum="5"></ele>
>   <ele sum="1"></ele>
>   <ele sum="2"></ele>
> </root>
> 
> The second group above has a sum of 11.

Benjamin's requirement was:

>I'm trying to break apart the ele element when the sum total of preceding 
>siblings and self is greater than the increment of 10 by putting an element 
>to denote the break.

E.g. in the above data, a <br/> appears just before the cumulative sum
would exceed 10, and again just before the cumulative sum would exceed
20.
Benjamin was not saying that each group should total 10 or less.

Not to discount the rest of your message...

Lars


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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