cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: [Proposal] Sitemap parameters
Date Wed, 29 May 2002 14:01:27 GMT

Nicola Ken Barozzi wrote:
>
> 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 :-)
>
Yes, this is a very good idea.
I haven't looked at the input modules yet, but it should be possible,
so patches are welcome :)

Carsten

Carsten Ziegeler     Chief Architect     Open Source Group, S&N AG
------------------------------------------------------------------
             Cocoon Consulting, Training and Projects
------------------------------------------------------------------
mailto:cziegeler@s-und-n.de                  http://www.s-und-n.de
                    http://ziegeler.bei.t-online.de


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


Mime
View raw message