You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Morten <mo...@zoomsports.com> on 2000/11/01 12:19:48 UTC
xsp in variable declaration
Hi,
Is it not possible to use <xsp:expr></xsp:expr> in a variable declaration?
My xsl:
________
<xsp:logic>
<list>
String find = "hello";
<xsl:variable name="finding">
<xsp:expr>find</xsp:expr>
</xsl:variable>
<find1>searching for <xsl:value-of select="$finding"/></find1>
<find2><xsp:expr>find</xsp:expr></find2>
</list>
</xsp:logic>
________
$finding now just contains the word 'find ' (my String variable name).
find1 = > find
find2 => hello
<xsp:expr>find</xsp:expr> will evaluate correctly everywhere else, except in my variable declaration.
Regards,
Morten Pihl
Re: xsp in variable declaration
Posted by Ulrich Mayring <ul...@denic.de>.
Morten wrote:
>
> Hi,
>
> Is it not possible to use <xsp:expr></xsp:expr> in a variable declaration?
>
> My xsl:
>
> ________
>
> <xsp:logic>
> <list>
>
> String find = "hello";
>
> <xsl:variable name="finding">
> <xsp:expr>find</xsp:expr>
> </xsl:variable>
Not possible. Why would you want to do that? Just do:
<finding><xsp:expr>find</xsp:expr></finding> in your XML and
<xsl:variable name="finding" select="/path/to/finding"/> in your XSL
Ulrich
--
Ulrich Mayring
DENIC eG, Systementwicklung