Carsten Ziegeler wrote: > > > -----Original Message----- > > From: Bert Van Kets [mailto:[EMAIL PROTECTED]] > > Sent: Monday, March 25, 2002 1:47 PM > > To: [EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]