cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Punte <steve17...@yahoo.com>
Subject Re: from session-attribute to xsl-variable
Date Mon, 14 Jan 2002 02:37:17 GMT
The construct is something like

<xsl:variable name="usertype"
select="@someattribute"/>

That is, if I understand your queestion correctly.

steve

--- Uwe Stelzer <UweStelzer@web.de> wrote:
> Hello Cocoon fellows,
> 
> How can I only copy the content of a session
> attribute to a xsl variable in my xsl-logicsheet?
> 
> I have tried this here, but I only get an empty
> string in $usertype:
>     <xsl:variable
> name="usertype"><session:get-attribute
> name="usertype"/></xsl:variable>
> 
> If I do a simple
>     <xsl:variable
> name="usertype">student</xsl:variable>
> then it works!
> 
> If I put <session:get-attribute name="benutzertyp"/>
> elsewhere in my template, it works also.
> 
> What am I doing wrong?
> 
> TIA
> 
> Uwe Stelzer
> 
> 
> 
>
---------------------------------------------------------------------
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail:
> <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:
> <cocoon-users-help@xml.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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