cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans-Guenter Stein <Hans-Guenter.St...@siteos.de>
Subject Re: assigning xsp expressions to xsl variables
Date Wed, 05 Jul 2000 15:10:48 GMT
I have the same problem (see my posting 'a basic question'). So if you find a
solution - please copy to me...

Kaufman Ng wrote:

> Hi,
>
> I'm trying to assign a xsl variable to have a value of a Java expression.
> The expression is actually an xsp expression like this:
>
> <xsp:logic>
>         Calendar calendar = Calendar.getInstance();
> </xsp:logic>
>
> <xsl:variable
> name="foo"><xsp:expr>calendar.get(Calendar.DATE)</xsp:expr></xsl:variable>
>
> When displaying the result of the same xsp expression to html, it looks
> fine.  But not so when I try to display foo.  On the screen I see
> "calendar.get(Calendar.DATE)" instead of "5" (the current day of the month).
>
> Any ideas?  Am I not supposed to pass data between xsp and xsl?
>
> Thanks!
>
> -kng
>
> ---------------------------------------------------------------------
> 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