I do this all the time too, but there's a "gotcha" to know about. If you modify one of the included files, you have to touch the top-level sitemap file in order for the sitemap to get reloaded so that you can see your changes take effect.

cheers,
—ml—

On Dec 11, 2006, at 3:57 AM, Janne K. Olesen wrote:

Hallo Stephen,

thanks a lot, its working great.

Janne

Hi Janne

The trick is quite simple, though more like an "include" than
inheritance. You define an XML entity at the beginning of your (sub-)
sitemaps; the entity points at a file which contains the resources
you want to share. You then include the file in your sitemaps by
invoking the entity ("&resources;" below). The stuff in the included
file has to fit the syntactic context where it is included, of course.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sitemap [
<!ENTITY resources SYSTEM "map-resources.xmap">
]>
<map:sitemap>
...
&resources;
...
</map:sitemap>


I use this technique a lot, though I would prefer a solution based on
inheritance from a master sitemap.

Steve


On 8 Dec 2006, at 18:36, Janne K. Olesen wrote:

Hallo,

does anybody knowns a workaround to enable resource inheritance
when using sub-sitemaps?

Problem:
I'm using cocoon to run quite a lot of applications, each of them
having their own sub-sitemap, which works fine to me.
But their is some code-base used in all sitemaps, so what I'm
looking for is something like resource/pipeline inheritance
or include-feature for sitemaps. The Idea

<map:mount src="cocoon:/generate-sitemap" check-reload="true"
reload-method="synchron"/>

and having a pipeline generating the sitemap doesn't work.

Greetings Janne


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Janne K. Olesen

mobi-tech GmbH
Glogauer Str. 5
10999 Berlin Kreuzberg

Phone: +49 (0)30-616 757 33
Fax: +49 (0)30-616 757 34
Mobile: +49 (0)179-112 12 65
www: http://www.mobi-tech.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to