cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hubert Holtz" <Turnhose_...@gmx.net>
Subject requestURI contains no value
Date Thu, 15 May 2003 08:29:46 GMT
Hy all,

I need the whole request URL in my XSL and tried the following,using
this post from Joerg in the mail archive:

>This action already exists:
>http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/RequestParamAction.html.
You only have to use it ;-)
>
><map:match pattern="test">
>  <map:generate src="anysrc"/>
>  <map:act type="reqparamaction">
>    <map:transform src="test.xsl">
>      <map:parameter name="reqUri" value="{requestURI}"/>
>    </map:transform>
>  </map:act>
>  <map:serialize/>
></map:match>
>
>
>This action must be declared in the <map:actions/> section of the
><map:components/> section at the top of the sitemap:
>
><map:action name="reqparamaction"
>src="org.apache.cocoon.acting.RequestParamAction"/>
>
>Regards,
>
>Joerg

I've created a variable (   <xsl:variable name="currentURL"><xsl:value-of select="$request_uri"/></xsl:variable>
 )
which should contain the value of the parameter in y XSL file (<xsl:param name="request_uri"/>)

<xsl:value-of select="$currentURL"/>

outputs no value, but why?

I'm using Cocoon 2.0.3 on Tomcat 4.1.

Any ideas?

Thanks,
Steve


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message