cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barbara Post" <bab...@ifrance.com>
Subject stuck with sunrise and session, please help...
Date Fri, 19 Jul 2002 17:22:02 GMT
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message