Hi Babara,
I'm afraid Carsten is on vacation this week and my knowledge about this is limited. But I suggest you take out this: <sunshine:setxml context="sunRise" path="/authentication/data/lang"> <xsl:value-of select="$lang"/> </sunshine:setxml> AFAIU "sunRise" is a reserved context. It is set automatically by the sunRise handler for you and contains all the authentication XML. Try to hardcode your "company" and "lang" values to be sure it works as expected. HTH Guido -- Open Source Group sunShine - Lighting up e:Business ================================================================= Guido Casper, S&N AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-87 [EMAIL PROTECTED] - http://www.s-und-n.de ================================================================= babs33 schrieb: > Please give me a hint... > > I try to add session attributes in my stylesheet : > > <!-- test authentication, from an xml file (will be : from LDAP) --> > > <xsl:template match="/"> > <authentication> > <xsl:apply-templates select="//user"/> > </authentication> > </xsl:template> > > <xsl:template match="user"> > <!-- check that user is ok and retrieve its data --> > <xsl:if test="company=$company and login=$username and password =$password"> > <ID><xsl:value-of select="company"/><xsl:value-of select="login"/></ID> > <role><xsl:value-of select="role"/></role> > <data> > <company><xsl:value-of select="company"/></company> > <lang><xsl:value-of select="$lang"/></lang> > </data> > <sunshine:setxml context="sunRise" path="/authentication/data/lang"> > <xsl:value-of select="$lang"/> > </sunshine:setxml> > > </xsl:if> > </xsl:template> > > > but I don't see any new session attributes in core.log. > > Then when I try to retrieve these attributes by sunshine:getxml, this is ok > for "ID" but nothing for "data". Thanks for any help, I spent the whole > afternoon on this and don't understand what's wrong... > > Barbara > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>