cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathaniel Alfred" <>
Subject RE: using global variables in subsitemaps
Date Thu, 04 Sep 2003 20:54:33 GMT
I had similar problems with the global input module.
Somewhere in the guts of building non-trivial pipelines the
Avalon magic used to the global configuration gets lost.
I didn't manage to hunt down the exact reason or to construct
an example for a decent bug report.

In the end I am now using the DefaultsMetaModule which serves
the same purpose.  The only difference is that the values
are defined in cocoon.xconf like:

logger="" name="my">


which you can then use in the sitemap as {my:conductor-serverdomain}.

HTH, Alfred.

> -----Original Message-----
> From: Fleischer Roman []
> Sent: Donnerstag, 4. September 2003 14:43
> To:
> Subject: using global variables in subsitemaps
> hi,
> I´m using cocoon 2.1M1 with Win2000. 
> I defined some global Variables in my root-sitemap like:
> <map:component-configurations>
>   <global-variables>
>     <conductor-serverdomain></conductor-serverdomain>
>   </global-variables>
> </map:component-configurations>
> When I try to access this variable in my subsitemap, I can do 
> it only when I
> call it in a matcher directly like:
> <map:match pattern="catalogList">
>   <map:generate
> src="http://{global:conductor-serverdomain}/test?cmd=catalogLi
> st&amp;output=
> xml" type="file"/>
>   <map:serialize type="xml"/>
> </map:match>
> Using the variables in matchers which use cocoon:/ seems not 
> to be possible.
> <map:match pattern="smallCatalog">
>   <map:generate src="cocoon:/catalogList" type="file"/>
>   <map:transform type="xslt" src="smallCatalog.xsl"/>
>   <map:serialize type="xml"/>
> </map:match>
> This matcher does not work - why?
> Can anybody help?
> thanks,
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

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

View raw message