You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Bart Molenkamp <b....@bizzdesign.nl> on 2004/10/01 14:43:14 UTC

[Portal] passing {request:contextPath} to window.xsl

Hi,

I want to pass a parameter (called "contextPath", received from
{request:contextPath}) to the window.xsl file. How can I do that? This
file is not called in a regular pipeline, but it's configured in
cocoon.xconf and (I guess) somewhere called by the portal framework.

Thanks,
Bart.

RE: [Portal] passing {request:contextPath} to window.xsl

Posted by Carsten Ziegeler <cz...@apache.org>.
Yes, this is true. The stylesheet is called by the Renderer that
renders the window. The Renderer is implemented by a combination
of different so called aspects. There is an XSLT Aspect that
invokes the stylesheet, so one approach is to extend the
class implementing the aspect and pass on the parameter in
the java code.

Carsten 

> -----Original Message-----
> From: Bart Molenkamp [mailto:b.molenkamp@bizzdesign.nl] 
> Sent: Friday, October 01, 2004 2:43 PM
> To: dev@cocoon.apache.org
> Subject: [Portal] passing {request:contextPath} to window.xsl
> 
> Hi,
> 
> I want to pass a parameter (called "contextPath", received from
> {request:contextPath}) to the window.xsl file. How can I do 
> that? This file is not called in a regular pipeline, but it's 
> configured in cocoon.xconf and (I guess) somewhere called by 
> the portal framework.
> 
> Thanks,
> Bart.
>