You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jim Emerson <ji...@your.abc.net.au> on 2004/03/04 04:10:13 UTC

conditional xpath using request parameters in the sitemap

Hi,

I'm trying to use conditional xpath in combination with the XML File Input 
Module (XMLFileModule) to set parameters in my sitemap:

<map:transform 
src="{defaults:xsl-path}{request-param:gateway}_displaystory.xsl">
		<map:parameter name="gatewayname" 
value="{myxml:/gateways/gateway[@id=request-param:gateway]/name}"/>
</map:transform>

It doesn't seem to recognise the value of request-param:gateway but it 
works when I hard code the value:

<map:transform 
src="{defaults:xsl-path}{request-param:gateway}_displaystory.xsl">
		<map:parameter name="gatewayname" 
value="{myxml:/gateways/gateway[@id='3']/name}"/>
</map:transform>

Any ideas or workarounds?

Jim Emerson



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