You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by roy huang <li...@hotmail.com> on 2004/06/02 10:09:24 UTC

Re: Can I pass sitemap variable to sub-sitemap?

Sorry ,the subject should be sitemap variable
----- Original Message ----- 
From: "roy huang" <li...@hotmail.com>
To: <us...@cocoon.apache.org>
Sent: Wednesday, June 02, 2004 4:05 PM
Subject: Can I pass sitemap parameter to sub-sitemap?


> Hi,all:
>     the sitemap looks like:
>       <map:act type="test">
>        <map:match pattern="apps/*/**">
>         <map:mount uri-prefix="apps/{1}" check-reload="true" src="apps/{1}/" />
>        </map:match>
>       </map:act>
>     the action will set an sitemap variable like action,so I can use it like
>     <map:parameter name="action" value="{action}"/>
>     It works if in the same sitemap,but if I mount sub sitemap ,can this sitemap variable pass to sub sitemap so I can use {action} in sub sitemap?
> 
> Roy Huang

Re: Can I pass sitemap variable to sub-sitemap?

Posted by roy huang <li...@hotmail.com>.
If this variable must be set by component like action?
----- Original Message ----- 
From: "vjaulin" <vi...@ajlsm.com>
To: <us...@cocoon.apache.org>
Sent: Wednesday, June 02, 2004 5:30 PM
Subject: Re: Can I pass sitemap variable to sub-sitemap?


> roy huang a écrit :
> 
> >Sorry ,the subject should be sitemap variable
> >----- Original Message ----- 
> >From: "roy huang" <li...@hotmail.com>
> >To: <us...@cocoon.apache.org>
> >Sent: Wednesday, June 02, 2004 4:05 PM
> >Subject: Can I pass sitemap parameter to sub-sitemap?
> >
> >
> >  
> >
> >>Hi,all:
> >>    the sitemap looks like:
> >>      <map:act type="test">
> >>       <map:match pattern="apps/*/**">
> >>        <map:mount uri-prefix="apps/{1}" check-reload="true" src="apps/{1}/" />
> >>       </map:match>
> >>      </map:act>
> >>    the action will set an sitemap variable like action,so I can use it like
> >>    <map:parameter name="action" value="{action}"/>
> >>    It works if in the same sitemap,but if I mount sub sitemap ,can this sitemap variable pass to sub sitemap so I can use {action} in sub sitemap?
> >>
> >>Roy Huang
> >>
> 
> sitemap.xmap
> 
> <map:pipelines>
> 
> <map:component-configurations>
> <global-variables>
> <!--+
> | Define global parameters here:
> | <skin>my_skin</skin>
> | ...
> | You can access them by {global:*name*}, e.g. {global:skin}.
> | These values are inherited into sub-sitemaps and can
> | be extended there.
> +-->
> <varA>blah</varA>
> 
> </global-variables>
> </map:component-configurations>
> 
> ...
> 
> 
> </map:pipelines>
> 
> 
> 
> sub-sitemap.xmap
> 
> 
> ......
> 
> 
> <map:transform src="{global:varA}"/>
> 
> ......
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

Re: Can I pass sitemap variable to sub-sitemap?

Posted by vjaulin <vi...@ajlsm.com>.
roy huang a écrit :

>Sorry ,the subject should be sitemap variable
>----- Original Message ----- 
>From: "roy huang" <li...@hotmail.com>
>To: <us...@cocoon.apache.org>
>Sent: Wednesday, June 02, 2004 4:05 PM
>Subject: Can I pass sitemap parameter to sub-sitemap?
>
>
>  
>
>>Hi,all:
>>    the sitemap looks like:
>>      <map:act type="test">
>>       <map:match pattern="apps/*/**">
>>        <map:mount uri-prefix="apps/{1}" check-reload="true" src="apps/{1}/" />
>>       </map:match>
>>      </map:act>
>>    the action will set an sitemap variable like action,so I can use it like
>>    <map:parameter name="action" value="{action}"/>
>>    It works if in the same sitemap,but if I mount sub sitemap ,can this sitemap variable pass to sub sitemap so I can use {action} in sub sitemap?
>>
>>Roy Huang
>>

sitemap.xmap

<map:pipelines>

<map:component-configurations>
<global-variables>
<!--+
| Define global parameters here:
| <skin>my_skin</skin>
| ...
| You can access them by {global:*name*}, e.g. {global:skin}.
| These values are inherited into sub-sitemaps and can
| be extended there.
+-->
<varA>blah</varA>

</global-variables>
</map:component-configurations>

...


</map:pipelines>



sub-sitemap.xmap


......


<map:transform src="{global:varA}"/>

......


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