cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <>
Subject RE: accessing request parameters in sitemap
Date Tue, 12 Feb 2002 18:58:19 GMT
> From: [] On
Behalf Of
> Currently the sitemap has a syntax which allows referring to matching
> portions of the URL. Is there a way to refer to request arguments,
> headers or session related properties directly in the sitemap?
> Something like this:
> <map:match pattern="doc/**">
>   <map:generate src="documents/{1}">
>     <map:parameter name="type" value="{parameter(type)}"/>
>     <map:parameter name="browser" value="{header(X-Browser)}"/>
>   </map:generate>
>   ...
> </map:match>

It can look like (not exactly, that's the hint):

<map:match type="request-header" pattern="X-Browser">
  <map:generate src="documents/xxx">
    <map:parameter name="browser" value="{1}"/>

Check out matching and selection packages.

PS: It might be that some matchers are missing. If you find a miss, tell


To unsubscribe, e-mail:
For additional commands, email:

View raw message