cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Per Kreipke" <...@onclave.com>
Subject Sample: XSP and XSL for browsing database tables
Date Wed, 06 Sep 2000 20:28:54 GMT
This code builds on Donald Ball's SQL taglib to pass in many of the required
parameters to a successful query as optional HTTP parameters.

Sample query:

http://localhost/table.xml?db=myDB&table=simple&start=10&max=20


It then styles any DB table into a HTML table with a header row and
alternating colors. It doesn't depend on any DB column or table names, e.g.
it allows a 'loose' contract [Stefano questioned that as an oxymoron :-)] to
browse the database and styling the results.

- You can change the colors and the number of rows in each group in the XSL
file.
- You can change the default table and DB names in the XML file so that it
automatically uses your favorite DB or table.
- You can override the display of any column with it's own style snippet
(e.g. template match).

Hope this is useful.

Per.

Mime
View raw message