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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to