cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "julien bloit" <Julien.Bl...@ircam.fr>
Subject Re: <session:getxml> not allowed in this position in the stylesheet
Date Wed, 10 Dec 2003 14:10:15 GMT

----- Original Message ----- 
From: "Bruce Perryman" <bperryman_us@yahoo.com>
To: <users@cocoon.apache.org>
Cc: <Julien.Bloit@ircam.fr>
Sent: Wednesday, December 10, 2003 1:52 PM
Subject: Re: <session:getxml> not allowed in this position in the stylesheet


> Hi Julien,
>
> Thanks for your response.
>
> I have the session namespace declared in my
> stylesheet,  and a simple request will work. For
> example:
>
> <name>
>  <session:getxml context="usrstuff" path="/fname"/>
> </name>
>

Does this return
<name>nameReturned</name>
?

> works fine. But if I want to have the background color
> of an html page to be retrieved from the session and
> placed in a body tag, I can't get it to work.
>
> <html>
>  <body bgcolor="X"> (where 'X' would come from
> session)
>  </body>
> </html>
>
> I've tried xsl:variables, xsl:attributes with no
> success.
>

If the previous snippet works, it might just be an xsl issue. Have you tried
somthing like :

<xsl:element name="body"><xsl:attribute name="bgcolor"><session:getxml
context="usrstuff" path="/fname"/>"></xsl:attribute></xsl:element>


HTH,

Regards,
Julien

> Thanks again.
> --- julien bloit <Julien.Bloit@ircam.fr> wrote:
> > Hi Bruce,
> >
> > You can use this tag in a <xsl:template> tag, as
> > long as the session
> > namespace is dclared in your xsl document.
> >
> > Can you provide a sample of the xsl you have a
> > problem with?
> >
> >
> > ----- Original Message ----- 
> > From: "Bruce Perryman" <bperryman_us@yahoo.com>
> > To: "cocoon" <users@cocoon.apache.org>
> > Sent: Tuesday, December 09, 2003 2:46 PM
> > Subject: <session:getxml> not allowed in this
> > position in the stylesheet
> >
> >
> > > Hello,
> > >
> > > I want to use <session:getxml> to retrieve data
> > which
> > > has been stored in the session with
> > <session:setxml>
> > > and place it in an html page.
> > > Where are allowable positions for <session:getxml>
> > in
> > > an xsl stylesheet?
> > >
> > > Thanks.
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > New Yahoo! Photos - easier uploading and sharing.
> > > http://photos.yahoo.com/
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail:
> > users-help@cocoon.apache.org
> > >
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail:
> > users-help@cocoon.apache.org
> >
>
>
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


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


Mime
View raw message