cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Britton" <>
Subject RE: [C2] Parameters passed to XSLT
Date Fri, 13 Apr 2001 14:11:44 GMT

Thanks for the response, but what if you are using the file generator or
the directory generator? In addition I think (and you all can scream at
me if I am wrong...) that there are many areas where within the
stylesheet one wants to make contextual decisions for display (such as
escaping all $ signs in content for display on a wap device) where
having to pass all that data in through the incoming document is a bad

Ovidiu Predescu has made good use of this type of feature with his
capabilites database for mobile devices (this is a feature he wrote for
C1). A particular browser description is passed as an argument to the
XSLT processor so that decisions based on it can be taken at the time of
page generation. see:

This is just one case. You can already access any of the request
parameters in the stylesheet by declaring <xsl:param name="name of
request parameter"/> as a root node of the stylesheet, but I thought
that there was a way to also access session and cookie data in the same
way by using a shorthand such as <xsl:param name="c_name-of-cookie"/>

Any ideas or thoughts....


> -----Original Message-----
> From: Davanum Srinivas []
> Sent: Friday, April 13, 2001 8:56 AM
> To:
> Subject: Re: [C2] Parameters passed to XSLT
> Colin,
> No, these don't get passed in. You will have to use a custom 
> XSP to get to cookies and header
> parameters. The premise being that the Generator will 
> generate "all" the data and the Transformer
> (XSLT in your case) will not need anything else. 
> Thanks,
> dims
> --- Colin Britton <> wrote:
> > I have been looking for the names (and types) of the 
> parameters that are
> > passed by cocoon2 into the XSLT processor. I can get at all my form
> > parameters, but want to get at cookies and other header 
> parameters. Does
> > anyone know how (or if) these are passed in?
> > 
> > rgds
> > CB 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > For additional commands, email:
> > 
> =====
> Davanum Srinivas, JNI-FAQ Manager
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, email:

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

View raw message