Hi

This is more of a xsl question but it relates to cocoon so I thought of putting it here.

I'm trying to capture parameter passed by user in xsl stylesheet. In my sitemap, I've declared the following:

<map:match pattern="service1">
<map:generate src="xml/test1.xml" type="file"/>
<map:transform src="xsl/stylesheet01_new.xsl">
<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:serialize/>
</map:match>

Now, when I pass a variable, lets say location in the browser like this
http://localhost:8080/cocoon/service1?location=Nepal my goal is to capture the value of the location in the stylesheet. I've declared parameter location in my stylesheet like this

<xsl:param name="location"/>

I was hoping that <xsl:value-of select="$location"/> would give the the value of location, which in this case is Nepal. But it does not. What is the proper syntax? Any xml-xsl gurus out there?

Sushil


_________________________________________________________________
Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


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