You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Milan Jezdik <xj...@seznam.cz> on 2007/02/22 18:36:38 UTC

URL GET parameters processing

Hello all,
how can I process URL GET parameters in my XSL files?

I need this: There is a page with sorted content on it - CD's titles. 
There are GET parameters telling what item use for sorting (name, date, 
price).

I can sort data on the page. There is no problem.

What I don't know is how can I reach these get parameters in my XSL 
which is called when page is generated? I need to place them into page 
links (there is a page list like "Page: 1,2,3,4,..." and the numbers are 
links where the current get parameters must be placed during page creation).


I hope it's clear.

Thank you in advance,
Milan


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: URL GET parameters processing

Posted by Andreas Hartmann <an...@apache.org>.
Milan Jezdik schrieb:
> Hello all,
> how can I process URL GET parameters in my XSL files?
> 
> I need this: There is a page with sorted content on it - CD's titles.
> There are GET parameters telling what item use for sorting (name, date,
> price).
> 
> I can sort data on the page. There is no problem.
> 
> What I don't know is how can I reach these get parameters in my XSL
> which is called when page is generated? I need to place them into page
> links (there is a page list like "Page: 1,2,3,4,..." and the numbers are
> links where the current get parameters must be placed during page
> creation).

This is explained in the Cocoon documentation (Transformers).

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: URL GET parameters processing

Posted by Michael Wechner <mi...@wyona.com>.
Milan Jezdik wrote:

> Hello all,
> how can I process URL GET parameters in my XSL files?


you mean query string parameters? Can you give an example, e.g. 
?name=beatles ?

You can pass on query string paramateres via the sitemap  into the XSLT 
transformer and then access it
from within the XSLT as for instance

<xsl:param name="name" value="'DEFAULT_VALUE'"/>

HTH

Michi

>
> I need this: There is a page with sorted content on it - CD's titles. 
> There are GET parameters telling what item use for sorting (name, 
> date, price).
>
> I can sort data on the page. There is no problem.
>
> What I don't know is how can I reach these get parameters in my XSL 
> which is called when page is generated? I need to place them into page 
> links (there is a page list like "Page: 1,2,3,4,..." and the numbers 
> are links where the current get parameters must be placed during page 
> creation).
>
>
> I hope it's clear.
>
> Thank you in advance,
> Milan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org
+41 44 272 91 61


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org