Advanced Components

Congratulations! You have written your own first components and extended Cocoon by adding your own sitemap components. But believe us: It gets even more exciting. In the previous examples, you developed some components that read documents from an archive: the zip reader and the zip generator. They are both very helpful components, but they have at least two disadvantages: They do not support the Cocoon caching algorithm, and it is not possible for other components such as transformers to also access an archive.

We will first show you how you can make the sitemap components cache-aware. Afterwards, you will develop your own zip protocol. With this protocol you can access documents from within an archive everywhere a URI is ...

Get Cocoon: Building XML Applications 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.