You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Bruno Dumon <br...@outerthought.org> on 2003/02/05 13:42:21 UTC

[ANN] GroupingTransformer

Hi all,

Based on some code from the xReporter project, I created a new
transformer for Cocoon that can do grouping and summary calculation of
table-like data (such as the data that comes out of the SQLTransformer).
The grouping to be performed is described in a configuration file. This
transformer works independent from xReporter.

Details and downloads are available here:
http://xreporter.cocoondev.org/subprojects/groupingtransformer.html

The transformer itself and the xReporter code on which it depends are
all released under Apache style licenses.

Enjoy,

Bruno

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [ANN] GroupingTransformer

Posted by Nicola Ken Barozzi <ni...@apache.org>.

Ugo Cei wrote, On 05/02/2003 14.39:
> Bruno Dumon wrote:
> 
>> I've never tried to do things like grouping and calculating summaries in
>> XSLT, but I think that:
>>
>>  * writing the config file for the GroupingTransformer is less work than
>> doing the same thing in XSLT.
>>  * calculating things like averages, sums, min and max values is a lot
>> easier than in XSLT (or probably impossible XSLT)
>>  * it should run faster than XSLT
> 
> 
> On the other hand, an XSLT-based solution would be usable also outside 
> of Cocoon.

Wait for XSLT2 then, that has grouping specified.

> Oh well, I'd better download the thing and have a serious look instead 
> of speculating.
> 
>     Ugo
> 
> P.S.: Apologies if I sounded skeptic. I'm sure that, coming from 
> Outerthought, it's a great piece of work.

Having done a lot of groupings with different methods when I was doing 
reporting, and having seen the unreadability of the solutions and the 
slowness, even without looking at the implementation I think it's an 
excellent idea.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [ANN] GroupingTransformer

Posted by Ugo Cei <u....@cbim.it>.
Bruno Dumon wrote:
> I've never tried to do things like grouping and calculating summaries in
> XSLT, but I think that:
> 
>  * writing the config file for the GroupingTransformer is less work than
> doing the same thing in XSLT.
>  * calculating things like averages, sums, min and max values is a lot
> easier than in XSLT (or probably impossible XSLT)
>  * it should run faster than XSLT

On the other hand, an XSLT-based solution would be usable also outside 
of Cocoon.

Oh well, I'd better download the thing and have a serious look instead 
of speculating.

	Ugo

P.S.: Apologies if I sounded skeptic. I'm sure that, coming from 
Outerthought, it's a great piece of work.

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [ANN] GroupingTransformer

Posted by Bruno Dumon <br...@outerthought.org>.
On Wed, 2003-02-05 at 14:11, Ugo Cei wrote:
> Bruno Dumon wrote:
> > Based on some code from the xReporter project, I created a new
> > transformer for Cocoon that can do grouping and summary calculation of
> > table-like data (such as the data that comes out of the SQLTransformer).
> > The grouping to be performed is described in a configuration file. This
> > transformer works independent from xReporter.
> 
> I'm too lazy^H^H^H^Hbusy to look at the docs now ;-). Can you tell us 
> what features it has that cannot be implemented with XSLT?
> 

I've never tried to do things like grouping and calculating summaries in
XSLT, but I think that:

 * writing the config file for the GroupingTransformer is less work than
doing the same thing in XSLT.
 * calculating things like averages, sums, min and max values is a lot
easier than in XSLT (or probably impossible XSLT)
 * it should run faster than XSLT

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [ANN] GroupingTransformer

Posted by Ugo Cei <u....@cbim.it>.
Bruno Dumon wrote:
> Based on some code from the xReporter project, I created a new
> transformer for Cocoon that can do grouping and summary calculation of
> table-like data (such as the data that comes out of the SQLTransformer).
> The grouping to be performed is described in a configuration file. This
> transformer works independent from xReporter.

I'm too lazy^H^H^H^Hbusy to look at the docs now ;-). Can you tell us 
what features it has that cannot be implemented with XSLT?

	Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [ANN] GroupingTransformer

Posted by Steven Noels <st...@outerthought.org>.
Bruno Dumon wrote:

> The transformer itself and the xReporter code on which it depends are
> all released under Apache style licenses.

We felt it as being inappropriate to add it directly to the Cocoon code 
base because it requires two extra (xreporter-related) jars, and I've 
been whining enough already about adding more weight to Cocoon CVS.

That being said, we made the license so that donation, should there be 
interest, still is very much possible.

And once blocks, and auto-retrieval of dependencies are properly 
realized, we'll make sure to wrap it into a block, if the code is still 
within in our hands (i.e. not donated by then).

Anyway, enjoy, and let us know what you think of it.

</Steven>
-- 
Steven Noels                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at            http://blogs.cocoondev.org/stevenn/
stevenn at outerthought.org                stevenn at apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org