Putting It All Together

Now that you have all the different parts, all that is left to do is put them together.

The first step is to create a directory named portal directly below the cocoon directory. Then create a directory named styles below portal.This directory is where you will store the stylesheets. Either save them into this directory or copy them from the CD. Make sure they are named rss091_html.xsl, rss091_wml.xsl, and rss091_pdf.xsl, respectively.

Then open the sitemap and add the pipeline, as you have done in the other examples. The next step is to start Cocoon if it is not already running. You do this by starting the servlet engine.

Use a browser to access the news, adding the style you would like to receive to the URL when you ...

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.