You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michael Bierenfeld <mi...@atmiralis.de> on 2000/07/05 13:09:08 UTC

Re: assigning xsp expressions to xsl variables

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


Sorry this is not possible. See previuous Threads
;-(

Regards

Michael

RE: xalan extensions in cocoon

Posted by Kaufman Ng <ka...@viant.com>.
Oops....I think I just got it working now.......my namespace declaration was
screwed up.

-kng


> -----Original Message-----
> From: Kaufman Ng [mailto:kaufman.ng@viant.com]
> Sent: Wednesday, July 05, 2000 10:38 AM
> To: cocoon-users@xml.apache.org
> Subject: xalan extensions in cocoon
>
>
>
> Has anyone tried using xalan extensions in cocoon?  I have
> configured cocoon
> to use xalan 1.1.D01 but I couldn't get my xsl to read in a java class.
>
> http://xml.apache.org/xalan/extensions.html#java-namespace
>
> -kng
>
>
> > -----Original Message-----
> > From: Eric SCHAEFFER [mailto:eschaeffer@posterconseil.com]
> > Sent: Wednesday, July 05, 2000 8:26 AM
> > To: cocoon-users@xml.apache.org
> > Subject: Re: assigning xsp expressions to xsl variables
> >
> >
> > Use Xalan XSLT extensions.
> >
> > Eric.
> >
> > ----- Original Message -----
> > From: "Michael Bierenfeld" <mi...@atmiralis.de>
> > To: <co...@xml.apache.org>
> > Sent: Wednesday, July 05, 2000 1:09 PM
> > Subject: Re: assigning xsp expressions to xsl variables
> >
> >
> > > 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
> > >
> > >
> > > Sorry this is not possible. See previuous Threads
> > > ;-(
> > >
> > > Regards
> > >
> > > Michael
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>

xalan extensions in cocoon

Posted by Kaufman Ng <ka...@viant.com>.
Has anyone tried using xalan extensions in cocoon?  I have configured cocoon
to use xalan 1.1.D01 but I couldn't get my xsl to read in a java class.

http://xml.apache.org/xalan/extensions.html#java-namespace

-kng


> -----Original Message-----
> From: Eric SCHAEFFER [mailto:eschaeffer@posterconseil.com]
> Sent: Wednesday, July 05, 2000 8:26 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: assigning xsp expressions to xsl variables
>
>
> Use Xalan XSLT extensions.
>
> Eric.
>
> ----- Original Message -----
> From: "Michael Bierenfeld" <mi...@atmiralis.de>
> To: <co...@xml.apache.org>
> Sent: Wednesday, July 05, 2000 1:09 PM
> Subject: Re: assigning xsp expressions to xsl variables
>
>
> > 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
> >
> >
> > Sorry this is not possible. See previuous Threads
> > ;-(
> >
> > Regards
> >
> > Michael
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


Re: assigning xsp expressions to xsl variables

Posted by Eric SCHAEFFER <es...@posterconseil.com>.
Use Xalan XSLT extensions.

Eric.

----- Original Message -----
From: "Michael Bierenfeld" <mi...@atmiralis.de>
To: <co...@xml.apache.org>
Sent: Wednesday, July 05, 2000 1:09 PM
Subject: Re: assigning xsp expressions to xsl variables


> 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
>
>
> Sorry this is not possible. See previuous Threads
> ;-(
>
> Regards
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>