cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Praher <jpra...@yahoo.de>
Subject RE: How to access the querystring in XSL?
Date Sun, 11 May 2003 05:54:49 GMT
Am Sam, 2003-05-10 um 23.50 schrieb Conal Tuohy:
> Jako Praher wrote:
> 
> > Am Sam, 2003-05-10 um 20.44 schrieb João César:
> > > Hi all,
> > >
> > > We're getting the querystring in the sitemap, using {request:query}
> > > but inside a XSL transformation is it possible to simply access the
> > > querystring value and put it inside a variable?
> > >
> >
> > <map:transform type="xslt" src="...xsl" >
> > 	<map:parameter name="use-request-parameters" value="true" />
> > </map:transform>
> 
> Alternatively, you can pass individual parameters to your stylesheet using
> the "request-param" input module, like this:
> 
> <map:transform type="xslt" src="...xsl" >
> 	<map:parameter name="foo" value="request-param:foo" />
> 	<map:parameter name="bar" value="request-param:bar" />
> </map:transform>
> 
> There are some advantages to passing parameters individually:
> 1)	it better documents what parameters the xslt actually uses
> 2)	the cache validity depends only the parameters you actually use
> 
probably right, as you have to declare them in the stylesheet anyway ...

bye

-- Jakob

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


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


Mime
View raw message