You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@s-und-n.de> on 2002/04/08 16:40:01 UTC

RE: sunRise session XPath

Carsten Ziegeler wrote:
> 
> > -----Original Message-----
> > From: Bert Van Kets [mailto:bert@visitronics.be]
> > Sent: Monday, March 25, 2002 1:47 PM
> > To: cocoon-dev@xml.apache.org
> > Subject: sunRise session XPath
> > 
> > 
> > When I try to read nodes from the sunRise session context I I 
> > can't got any 
> > deeper than the first level.
> > 
> > When I use this file:
> > <doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0">
> >    <sunshine:getxml context="sunRise" path="/"/>
> > </doc>
> > 
> >   I get :
> > <?xml version="1.0" encoding="UTF-8" ?>
> > - <doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0">
> > - <authentication>
> > <ID>bert</ID>
> > <role />
> > - <data>
> > <name>bert</name>
> > <role />
> > <ID>bert</ID>
> > <user>bert</user>
> > <title />
> > <firstname />
> > <lastname />
> > <company />
> > <street />
> > <zipcode />
> > <city />
> > <country />
> > <phone />
> > <fax />
> > <email />
> > <bankid />
> > <bankname />
> > <accountid />
> > </data>
> > <useragent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; 
> > T312461)</useragent>
> > <type>sunrise</type>
> > <media>html</media>
> > </authentication>
> > </doc>
> > 
> > When I request just the ID using
> > <doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0">
> >    <sunshine:getxml context="sunRise" path="/authentication/ID"/>
> > </doc>
> > 
> > I get
> > - <doc xmlns:sunshine="http://cocoon.apache.org/sunshine/1.0">
> > <ID>bert</ID>
> > <role />
> > - <data>
> > <name>bert</name>
> > <role />
> > <ID>bert</ID>
> > <user>bert</user>
> > <title />
> > <firstname />
> > <lastname />
> > <company />
> > <street />
> > <zipcode />
> > <city />
> > <country />
> > <phone />
> > <fax />
> > <email />
> > <bankid />
> > <bankname />
> > <accountid />
> > </data>
> > <useragent>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; 
> > T312461)</useragent>
> > <type>sunrise</type>
> > <media>html</media>
> > </doc>
> > 
> > So only the root node from the context is gone.  I was expecting 
> > to get the 
> > ID of the user, not the whole context.  The sunRise docs specifically 
> > states that it must be possible to request the ID of the user by using 
> > XPath statements in the sunshine:getxml node.  Am I missing here 
> > something 
> > or is the session context not treated as XML nodes, but as text?
> > 
> It is treated as XML and the docs are correct, so this might be a bug.
> I will look into the code as soon as I have time, hopefully this week,
> but perhaps not before eastern.
> 
Hi Bert,

finally I got a little bit of time...

a) Confirmed, it's a bub
b) It's fixed now

Thanks for reporting,

Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: sunRise session XPath

Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Carsten Ziegeler wrote:
> a) Confirmed, it's a bub

Ehm, I meant 'bug' ...

Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org