The construct is something like

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

That is, if I understand your queestion correctly.

steve

--- Uwe Stelzer <[EMAIL PROTECTED]> 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:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <[EMAIL PROTECTED]>
> 


__________________________________________________
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to