You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2006/01/13 19:31:51 UTC

[DAISY] Comment added to SitemapModelComponent Contracts

A comment has been created.

http://cocoon.zones.apache.org/daisy/documentation/673.html

Document ID: 673
Name: SitemapModelComponent Contracts
Branch: main
Language: default

Created by: Ellis Pritchard
Created on: 1/13/06 6:31:32 PM
Visibility: public

Note that sitemap parameters are all fully evaluated before any of the pipeline is executed (e.g. even before setup() is called on the generator); therefore you cannot set something (e.g. a request attribute) inside a custom generator and pass it into a transformer using a parameter value in the sitemap. You can't get around this by calling separate internal cocoon: pipelines either.

Workarounds do exist which involve setting and getting everything in the sitemap, or getting everything inside custom gnerators and transformers, or simply encoding whatever it was you wanted to pass between the components into the XML stream; the last option is usually preferable!