roy huang a écrit :
>Sorry ,the subject should be sitemap variable
>----- Original Message -----
>From: "roy huang" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]