cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Ken Barozzi" <nicola...@apache.org>
Subject Re: [Proposal] Sitemap parameters
Date Wed, 29 May 2002 13:52:31 GMT
From: "Carsten Ziegeler" <cziegeler@s-und-n.de>

> You can configure the global parameters in the map:pipelines section:
> <map:pipelines>
>   <map:global-parameters>
>      <map:parameter name="skin" value="forrest-skin"/>
>   </map:global-parameters>
>
> and use it:
>
>   <map:pipeline>
>     <map:match pattern="test">
>        ...
>        <map:transform src="{../skin}.xsl"/>
>     </map:match>
> ...

:-)

Is there a way to set the parameter out of the sitemap?
It seems that using inputmodules one could write:

 <map:pipelines>
   <map:global-parameters>
      <map:parameter name="skin" value="{request:skin}"/>
   </map:global-parameters>
...

which could be really cool, since it gives both the possibility of setting
it from the outside and setting it in a single point.
It seems that both approaches have their use :-)

--
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


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


Mime
View raw message