You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Kirchhoff, Lars" <La...@wincor-nixdorf.com> on 2002/12/18 08:25:04 UTC
AW: Passing request parameters - and making use of them in the XS
L
hi
you have to reference the param with a $. In your case
<xsl:value-of select="$param">
ciao Lars
> -----Ursprüngliche Nachricht-----
> Von: Lenya L. Khachaturov [mailto:lenya@chemsell.yaroslavl.ru]
> Gesendet: Mittwoch, 18. Dezember 2002 15:15
> An: cocoon-users@xml.apache.org
> Betreff: Passing request parameters - and making use of them
> in the XSL
>
>
> Hello,
>
> It seems like everybody knows how to do this, at least the
> docs mention
> this so briefly, that it must be dead simple. Anyway, I
> didn't get it :-)
> Please help me on this:
>
> <map:match pattern="archives/**">
> ...
> <map:transform src="my.xsl" type="xslt">
> <map:parameter name="param" value="{1}">
> </map:transform>
> ...
> </map:match>
>
> Now, when I point the browser to http://mysite/archives/december,
> the parameter named "param" with the "december" value should
> be passed to
> the stylesheet. In the stylesheet I have: <xsl:param name="param" />
> As far as I understood, <xsl:value-of select="param"> should print
> "december" - right? Well, it doesn't. What am I doing wrong?
>
> --
> Lenya Khachaturov
> mailto:lenya@chemsell.yaroslavl.ru
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Passing request parameters - and making use of them in the XS L
Posted by "Lenya L. Khachaturov" <le...@chemsell.yaroslavl.ru>.
On Wed, Dec 18, 2002 at 03:25:04PM +0800, Kirchhoff, Lars wrote:
> hi
>
> you have to reference the param with a $. In your case
>
> <xsl:value-of select="$param">
>
Thanks everyone for responding so quickly, that was really simple :-)
--
Lenya Khachaturov
mailto:lenya@chemsell.yaroslavl.ru
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>