Sitemap Components

First of all, there are the sitemap components: actions, generators, transformers, serializers, matchers, and selectors. You used these various component types when we looked at Cocoon from the user perspective in Chapters 4 and 6. Depending on the application, you might need to write an action, generator, reader, transformer, or sometimes maybe even a selector. But in the case of serializers and matchers, the situation is slightly different, because Cocoon already provides common implementations. During the work you have done with Cocoon, you have not yet had to write a serializer or a matcher.

The component most likely to be written is the action. This type of component is ideal for integrating functionality that might already ...

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.