cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist <lundquist.m...@gmail.com>
Subject Re: variable expansion fails
Date Tue, 31 Jul 2007 21:02:37 GMT

On Jul 31, 2007, at 1:52 PM, Rob Frohwein wrote:

> <xsl:copy-of 
> select="document('cocoon://path/proc.xsp/?var={$var}')/*"/>
>
> ....
>
> But the variable is *not* expanded.
> Proc.xsp sees the value of request-parameter var
> is set to litarally {$var}

That's 'cause that's what you literally wrote :-). Xpath string syntax 
doesn't comprise variably "interpolation" like that.  What you want 
would be this:

<xsl:copy-of select="document(concat ('cocoon://path/proc.xsp/?var=', 
$var, '/*')" />

HTH,
—ml—


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


Mime
View raw message