cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <>
Subject Re: Resource re-use between sitemaps
Date Mon, 21 Feb 2005 17:55:55 GMT
Hi Colin,

Luca Garulli wrote:
> AFAIK you cannot call resources defined in the parent sitemap.

Besides this, map:call is not allowed withing map:pipeline. It has to be wrapped in a map:match.

> You should try to use XPatch or write an ant target that build the
> final sitemap merging all sub-sitemaps ;-)

You can also rewrite the resource to a match that is inside an 'internal-only' pipeline.

For instance:

Parent sitemap:

<map:match pattern="common-resource">
   <!-- generate, transform and serialize or simply 'read' your html -->

Sub sitemap:

<map:match pattern="call-resource">
   <map:read src="cocoon://path-to-parent-sitemap/common-resource" />


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message