cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: generator parameter
Date Mon, 07 May 2001 11:26:29 GMT
Quoting Torsten Curdt <tcurdt@dff.st>:

> Are generator parameters accessible from
> within the xsp page?
> 
>    <map:match pattern="test.html">
>     <map:act type="lang-select">
>      <map:generate type="serverpages" src="test.xsp">
>       <parameter name="lang" value="{lang}"/>
>      </map:generate>
>     </map:act>
>     <map:transform src="stylesheets/page/simple-page2html.xsl"/>
>     <map:serialize type="html"/>
>    </map:match>

In fact this is the approach to go.

> Or should I get the lang from the session directly?

The LangGetter action already examines the session (if one exists).

Giacomo

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


Mime
View raw message