On Mon, 11 Jun 2001, Matteo Colombo wrote:

> Hi,
> I'm using auth taglib (http://ulim.cocoonhost.com).
> I've a problem to submit you. After authentication I go to reserved.xml that
> makes a query, it get two value and put those in the session (with the names
> auth:group and auth:role), now I'm trying to retrieve those two in
> reserved.xsl (that is a filter applied to reserved.xml) in this way:
> 
> <?xml-logicsheet href="../auth.xsp.xsl"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:auth="http://ulim.cocoonhost.com/auth";
> xmlns:esql="http://apache.org/cocoon/SQL/v2";>
> <xsl:variable name="role">
>    <auth:var name="auth:role"/>
>   </xsl:variable>
>   <xsl:variable name="group">
>    <auth:var name="auth:group"/>
> </xsl:variable>
> 
>   but "$role" e "$group" are empty!!!.
> I checked the session, auth:role and auth:group had the right values!!!
> What's it wrong? Can I call session parameters from an XSL file?

No you can't. In that case you have to encode the params as request
parameters and do:

<xsl:variable name="role"/>

Ulrich


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