Chapter 20. Cocoon

Chapter 18 included an overview of the XML portion of the Java tag library. Several of the examples in that chapter illustrated a two-stage approach to building pages. In the first stage a JavaServer Page builds an XML document containing the data, and in the second stage XSLT is used to transform the document into a form suitable for presentation.

Cocoon takes this idea and expands on it by several orders of magnitude. Cocoon provides a complete XML-based publishing suite that provides dozens of tools for the generation, manipulation, and rendering of XML. The basic two-stage approach is augmented into an XML pipeline that may build and transform a document in several steps.

Building and Configuring Cocoon

Cocoon is unlike any ...

Get Apache Jakarta and Beyond: A Java Programmer’s Introduction now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.