On 13.Jan.2002 -- 09:11 PM, Uwe Stelzer 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?

Mixing up concepts :-) When your logicsheet is executed, no session
attribute exists, even more: no request exists! You need to assign a
"real" i.e. java variable with <session:.../>. That would work
well. See cocoon introduction for an explanation of how this works.

        Chris.

-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
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