Getting Practical

Now you know the theoretical basics of using Cocoon: the components and the pipelines of the sitemap. To get more practical, we will start with a very small sitemap that contains only what you have learned so far, and that includes the Hello World example.

But before we start, here’s a piece of advice that we mentioned when we talked about the naming and location of the sitemap: Cocoon provides defaults for most configuration parameters. We advise you not to change these defaults at the moment and, indeed, not to do so before you are more comfortable with the sitemap. The default settings were chosen to make life easier for someone starting with Cocoon, so we will stick with them for the moment. In Listing 4.7, it is easy to ...

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.