cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Man <Martin....@seznam.cz>
Subject Re: generator parameter
Date Mon, 07 May 2001 10:44:19 GMT
On Mon, May 07, 2001 at 11:27:04AM +0200, Torsten Curdt wrote:
> 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>
I was also once unsuccessfully trying to find where the parameters can be
accessd from, I would like to use them for URL to params mapping

<map:match pattern="go/*/*">

  <map:generate type="serverpages" src="test.xsp">
    <parameter name="one" value="{1}"/>
    <parameter name="two" value="{2}"/>
  </map:generate>
  ...
</map:match>


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

any explanations from designers of these components ???

thanx,
martin

-- 
-------------------------------------------------------------------------------
"Only dead fish swims with a stream"
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

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


Mime
View raw message