DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
Here is a minimal Sitemap example. In a UnderstandingCocoonMounts subdirectory, this is sufficient for Cocoon to do its job, assuming the required Components are defined in <map:components> in a parent sitemap.
In other words, the parent Sitemap must have declared a component that corresponds with the indicated defaults.
A minimal root Sitemap would be almost identical, other than it must also declare the default components. See Components for examples of how this is done.
SitemapStructure has another basic reference.
<?xml version="1.0" encoding="iso-8859-1"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- use the standard components -->
<map:components>
<map:generators default="file"/>
<map:transformers default="xslt"/>
<map:readers default="resource"/>
<map:serializers default="html"/>
<map:selectors default="browser"/>
<map:matchers default="wildcard"/>
</map:components>
<!-- let cocoon know how to process requests -->
<map:pipelines>
<map:pipeline>
<!-- respond to *.html requests with
our docs processed by doc2html.xsl -->
<map:match pattern="*.html">
<map:generate src="{1}.xml"/>
<map:transform src="doc2html.xsl"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
Once you've got the basics down perhaps you want to add sitemap entries to process other types of request:
- ServingStaticFiles
- XLSSerializer - discusses how to set up the pipeline for Excel files.
- AddCIncludeToMinimalSitemap - discusses how to add the CInclude transformer to the sitemap.
- BasicAggregationExample - discusses how to add aggregated content to the minimal sitemap configuration.
- HTML and PDF publishing How-To which gives a minimal example of HTML and PDF publishing.