cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "João César" <joaoce...@duploclique.com>
Subject Re: How to access the querystring in XSL?
Date Sun, 11 May 2003 00:27:56 GMT
It's working :)

I was not initializing the param outside the templates...

<xsl:param name="query"></xsl:param>

Thanks all :)

Joao Cesar
joaocesar@duploclique.com

Computer Science Student @ Universidade de Lisboa, PORTUGAL

----- Original Message ----- 
From: "João César" <joaocesar@duploclique.com>
To: <cocoon-users@xml.apache.org>
Sent: Sunday, May 11, 2003 1:13 AM
Subject: Re: How to access the querystring in XSL?


> I've used both techniques and I'm getting :
>
> description org.apache.cocoon.ProcessingException: Exception during
> processing of file:/C:/Program Files/Apache Group/Tomcat
> 4.1/webapps/cocoon/pubmed/xsl/reports.xsl:
> org.apache.xml.utils.WrappedRuntimeException: Could not find variable with
> the name of query
> -
>
> In the sitemap i have:
>
> in components:
>
> <map:transformer name="xslt"
> src="org.apache.cocoon.transformation.TraxTransformer" pool-max="32"
> pool-min="16" pool-grow="4">
>      <use-request-parameters>true</use-request-parameters>
>      <use-browser-capabilities-db>false</use-browser-capabilities-db>
>     </map:transformer>
>
> in pipeline:
>
>     <map:transform type="xslt" src="xsl/reports.xsl">
>          <map:parameter name="query" value="request-param:query" />
>         </map:transform>
>
> In the reports.xsl i have:
>
> <xsl:value-of select="$query"/>
>
> What's wrong ?
>
> Thanks
>
> Joao Cesar
> joaocesar@duploclique.com
>
> Computer Science Student @ Universidade de Lisboa, PORTUGAL
>
> -- Original Message ----- 
> From: "Conal Tuohy" <conalt@paradise.net.nz>
> To: <cocoon-users@xml.apache.org>
> Sent: Saturday, May 10, 2003 10:50 PM
> Subject: RE: How to access the querystring in XSL?
>
>
> > 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
> >
> > Cheers
> >
> > Con
> >
> >
> > ---------------------------------------------------------------------
> > 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
>


---------------------------------------------------------------------
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