You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "John L. Webber" <Jo...@jentro.com> on 2004/02/02 15:35:31 UTC
Subsitemaps and resources
I've Googled about everything possible, but can't seem to find a
definitive answer to this question (though I fear the answer is "no"):
Can a subsitemap call named resources from a root sitemap? If so, how?
Experimentation seems to show that it doesn't work, but maybe I'm
missing something. For example, sitemap A has a resource like this:
<map:resources>
....
<map:resource name="page.xsp">
<map:generate src="{xsp}" type="serverpages">
<map:parameter name="dest" value="{dest}"/>
</map:generate>
<map:transform type="cinclude"/>
<map:transform src="html/{page}2html.xsl">
<map:parameter name="language" value="{session-attr:locale}"/>
<map:parameter name="page" value="{page}"/>
<map:parameter name="error" value="{error}"/>
</map:transform>
<map:transform type="i18n">
<map:parameter name="locale" value="{session-attr:locale}"/>
</map:transform>
<map:serialize/>
</map:resource>
...
</map:resources>
Sitemap B (which contains logic for a pluggable portion of our webapp) is mounted in sitemap A as follows (names changed):
<map:pipeline>
<map:match pattern="foo/**">
<map:act set="general">
<map:mount uri-prefix="foo" src="foo/sitemap.xmap" check-reload="yes" reload-method="synchron"/>
</map:act>
<map:redirect-to uri="../sessiontimeout.html"/>
</map:match>
</map:pipeline>
Is there any way pipelines in sitemap B can call the "page.xsp" resource in sitemap A?
--
---------------------------------------------------------
Jentro Technologies GmbH
John L. Webber, Software Development
---------------------------------------------------------
Rosenheimer Str. 145e 81671 München
Tel. +49 89 189 169 80 mailto:John.Webber@jentro.com
Fax +49 89 189 169 99 http://www.jentro.com
---------------------------------------------------------
NOTICE: The information contained in this e-mail is confidential or may otherwise be legally privileged. It is intended for the named recipient only. If you have received it in error, please notify us immediately by reply or by calling the telephone number above and delete this message and all its attachments without any use or further distribution of its contents. Please note that any unauthorised review, copying, disclosing or otherwise making use of the information is strictly prohibited. Thank you.
---------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Subsitemaps and resources
Posted by "John L. Webber" <Jo...@jentro.com>.
OK, thanks Joerg -- I'll keep an eye open for this feature. It would
certainly be nice to have....
John
Joerg Heinicke wrote:
> On 02.02.2004 15:35, John L. Webber wrote:
>
>> I've Googled about everything possible, but can't seem to find a
>> definitive answer to this question (though I fear the answer is "no"):
>
>
> Indeed it's not possible. This feature needs a massive redesign of the
> sitemap implementation and will be maybe available in 2.2.
>
> Joerg
>
--
---------------------------------------------------------
Jentro Technologies GmbH
John L. Webber, Software Development
---------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Subsitemaps and resources
Posted by Joerg Heinicke <jo...@gmx.de>.
On 02.02.2004 15:35, John L. Webber wrote:
> I've Googled about everything possible, but can't seem to find a
> definitive answer to this question (though I fear the answer is "no"):
Indeed it's not possible. This feature needs a massive redesign of the
sitemap implementation and will be maybe available in 2.2.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org