cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <Geert.Jos...@daidalos.nl>
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 -->
</map:match>

Sub sitemap:

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

Cheers,
Geert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message