Hi
I'd like to keep in session some additional information about users. My sunrise-user.xml file looks like this:
 
*************************sunrise_user.xml ******************
<authentication>
 <users>  
  <user>
   <name>cocoon</name>
   <password>cocoon</password>
   <role>cocoon</role>
   <data>    
    <name>hello</name>
    <age>12</age>
   </data>   
  </user>  
 </users>
</authentication>
**********************************************
 
I have no problem with getting ID, and role content, but when I use session transformer to get name or age I get this result:
 
************ session transformer result *****
<authentication>
<ID>cocoon</ID>
<role>cocoon</role>
<data>
<user>cocoon</user>
</data>
<type>cocoon.authentication</type>
<media>html</media>
</authentication>
<application>
*************************************************
As you can see my <data></data> elements, hasn't got <name> and <age> children... why ?????
 
This is part of my_session_view.xsp file:
 
*******************my_session_view.xsp *******************************
<session:getxml context="authentication" path="/"/>
<session:getxml context="authentication" path="/authentication/data/name"/>  
 
****************************************************************************
 
At the sitemap's level I have tried to do it in this way (but every time I get nothing). My pipeline is auth-protect:
 
************************ sitemap *************************
<map:transform src="">
     <parameter name="user" value="{/authentication/data/name}"/>
</map:transform>
************************************************************
 
What I'm doing wrong ? How can I get access to this additional data in xsp file, and in sitemap (I need them in sitemap too :( ) ?????
 
 
greeting
mario
 

Reply via email to