The Evolving Cocoon Architecture

The Cocoon architecture changed abruptly from version 1.x when the current 2.0 version was designed. The first version of Cocoon, started in 1998, was based on the DOM processing model. The XML files (the content) contained processing instructions that Cocoon used to apply the XSLT stylesheets.

As you saw when we looked at Cocoon from a user perspective, the processing flow is now defined by the pipelines in the centralized configuration file, the sitemap. The XML processing now takes place using SAX, so memory consumption is much lower than it was in the first version.

The sitemap is an XML file that is compiled into a Java class every time a change is detected. To be more exact, first a stylesheet is applied ...

Get Cocoon: Building XML Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.