Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 77164 invoked by uid 500); 8 Apr 2002 14:37:47 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 77152 invoked from network); 8 Apr 2002 14:37:46 -0000 From: "Carsten Ziegeler" To: Subject: RE: sunRise session XPath Date: Mon, 8 Apr 2002 16:40:01 +0200 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 08.04.2002 16:37:46, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 08.04.2002 16:37:47, Serialize complete at 08.04.2002 16:37:47 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: > > > > > > > > > > I get : > > > > - > > - > > bert > > > > - > > bert > > > > bert > > bert > > > > <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