Lenya
I tried your example, it prints the parameter for me.
You may have a typo in expression

<xsl:value-of select="param">

should be
<xsl:value-of select="$param">

At least, this is the only reason I see.

Anna

----- Original Message ----- 
From: "Lenya L. Khachaturov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 9:14 AM
Subject: 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:[EMAIL PROTECTED]

---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>


---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to