Hi,

I want to access a request parameter in a xsl.

Therefore I use the code:
<xsl:value-of select="//RequestParameters/Parameter[@name='pName']/@value"/>

My request string is:
http://localhost:8080/cocoon/dev/ownActionItems.htm?pName=Projekt2&xpath=//p
rojects/project[2]/actionItem

Is this fundamentally the right way to access a request parameter?
Do I have to add anything into the sitemap to get access to these
parameters?

My sitemap entry is the following:

<map:match pattern="dev/ownActionItems.htm">
   <map:match pattern="xpath" type="request-parameter">
      <map:generate src="xmldb:xindice://localhost:4080/db/johannes3/#{1}"/>
      <map:transform src="dev/ownActionItems/ownActionItems.xsl"/>
      <map:serialize type="html"/>
   </map:match>
   <map:generate src="xmldb:xindice://localhost:4080/db/johannes3/"/>
   <map:transform src="dev/ownActionItems/ownActionItems.xsl"/>
   <map:serialize type="html"/>
</map:match>

Regards,
Johannes


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