You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Lenya L. Khachaturov" <le...@chemsell.yaroslavl.ru> on 2003/02/03 10:59:37 UTC

Re: Passing User-Agent as a map:parameter

On Fri, Jan 31, 2003 at 07:20:39PM +0100, Marco Rolappe wrote:
> hi lenya,
> 
> I haven't yet really been into input modules, but I think you could use
> something like:
> 
>   <map:transform src="blog/blog.xsl" type="xslt">
>  	<map:parameter name="browser" value="header:user-agent"/>
>   </map:transform>
> 
Thanks for the hint! Actually, the parameter's value should be
request-header:user-agent. It works great!

-- 
Lenya Khachaturov
mailto:lenya@chemsell.yaroslavl.ru

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>