RE: [xsl] Re: Grouping problem?

Subject: RE: [xsl] Re: Grouping problem?
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Tue, 22 Apr 2003 17:10:07 -0500
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