cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Comment added to SitemapModelComponent Contracts
Date Fri, 13 Jan 2006 18:31:51 GMT
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!

Mime
View raw message