Introduction

The GroupingTransformer is a transformer for use within Apache Cocoon. It can group table-like data and calculate summaries for each group. It is based on the grouping and expression language code from xReporter, though it does not require xReporter to be used (and vice versa: if you're using xReporter, you don't need this separate transformer).

Requirements

Currently the requirements are as follows:

  • Java 1.4
  • Cocoon 2.04

It probably also works with other Cocoon versions, though that's not tested.

Screenshot

grouping transformer output

Download and installation

Download a release here:

To build the code, you will need to have Ant installed. Then execute the following command:

ant -Dcocoon.home=/path/to/tomcat/webapps/cocoon

The script needs the location of your Cocoon installation because the Cocoon jars are needed to compile the transformer. The script will not copy anything to the cocoon directory.

If you have a default Cocoon installation (with the "automount" stuff), then you can install a sample by using the following command:

ant -Dcocoon.home=/path/to/tomcat/webapps/cocoon deploy

And (after restarting Tomcat) you can then try out the sample by surfing to:

http://localhost:8080/cocoon/mount/groupingdemo/grouping

Usage

The complete usage instructions are in a separate document.

License

Apache style license, read it here.

Feedback

The GroupingTransformer is an open-source project. We welcome your feedback on the xReporter mailing list.

Comments (0)