cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Painter-Wakefield" <>
Subject Re: Very Dynamic XSP
Date Thu, 24 Jul 2003 14:03:05 GMT

For what you are doing, SQLTransformer might be a better choice than XSP.
It is designed for just this kind of use; take an input XML (your report
definition), turn it into SQL, and run it against the database.  The output
XML can then be easily turned into the report format as you've described.
We have an application in production that works this way now.

You may also want to look at xReporter (,
which is a tool based on cocoon to do pretty much the same thing as we have
been discussing.


|         |           "Bobba Fett"     |
|         |           <stucco_junk@hotm|
|         | >         |
|         |                            |
|         |           07/23/2003 08:58 |
|         |           PM               |
|         |           Please respond to|
|         |           users            |
|         |                            |
  |       To:       <>                                      
  |       cc:                                                                            
  |       Subject:  Very Dynamic XSP                                                     

I'm new to XSP, and have a pretty in depth question.  Any help is

I am working on reporting tool.  The maintnance will come in the adding of
new reports.  Typically these reports will be very simplistic, represented
by an html table in a simple rows, cols format.  The cols will represent
the fields and the rows the single or multi level aggregation of the data.

An example would be a document report.  The agg is an individual document,
and across the columns we will have unique id, document location, author,
and owner.  For another style document report we may also want to display
the manager, but not the author.

I don't want to write a new xsp for every single report we come up with
because there will be very many.  My solution is to come up with a xml file
called a report definition.  Ideally, with the addition of one of these, I
can direct a hit at report?rpt=doc_1 (the report def) and it will generate
the report with what I want.

A simple report def would be
 <name>Document report type 1</name>
 <desc>This report displays.....</desc>

I would like to simply add a report def and get a new finalized report.  So
I've come up with a basic layout of what this might look like.

User -> Report Def (FileGen) -> QueryXSP (XSPGen) -> XSLT (Trans) -> HTML

But I don't know how to use the Report Def information in the QueryXSP.
I have the query working and putting out the desired fields, but it's
currently static, aside from requestQuery that I pass it for fun.

One more thing.  These reports must be bookmarkable, in order words all
criteria and vars when constructing this must appear on the location bar.

I also considered

User -> Report Def (FileGen) -> ToXSP (XSLTTrans) -> QueryXSP (XSPGen) ->
Format (XSLTTrans) -> Viewable (HTMLSerial)

What I mean by that is actually writing a XSLT to transform the Report Def
into QueryXSP and then somehow call it as a generator.  Not sure if that's
possible but it seems like it would use much more overhead.

Is there a better design for what I am doing?  I'm trying to put in the
time now instead of later, writing hundreds of XSPs.  BTW I don't expect to
get away with 1, but perhaps 1 for each very general type of report.

Any help is greatly appreciated.

Aaron Gadberry

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message