From: Makoto O. <oni...@la...> - 2006-11-13 02:09:18
|
Hi Steffi, nice to see you. I run xrun over your XML document and obtained the following result: makoto@clos1:/cygdrive/c/home/makoto:[2]> xrun //person ttt.xml <person id="person1"> <name>Vidar Reinsch</name> <profile income="91891.75"> <age/> </profile> <watches/> </person><person id="person2"> <name>Rens Rifaut</name> </person>makoto@clos1:/cygdrive/c/home/makoto:[3]> This is somewhat different from your result. Did you use a different XPath expression? Only endContext(person) must be emitted if you specify //person. makoto --------------------------------------------------------------- Makoto Onizuka E-mail oni...@la... Open source software computing project, NTT Cyber Space Laboratories From: "Stefanie Scherzinger" <ste...@gm...> Subject: [Xmltk-devs] bug in calling end-Context? Date: Sat, 11 Nov 2006 00:34:20 -0500 Message-ID: <de4...@ma...> >Hi, > >I evaluated the query //person on the input file > > <a> > <person id="person1"> > <name>Vidar Reinsch</name> > <profile income="91891.75"> > <age/> > </profile> > <watches/> > </person> > > <person id="person2"> > <name>Rens Rifaut</name> > </person> ></a> > >but as a result I get > ><person id="person1"> ><name>Vidar Reinsch</name> ><profile income="91891.75"> ><age/> ></profile> ></person><person/> > >The result is correct if either the attribute in "profile" or the >"age" token are missing. It seems that the end-context for the XPath >expression is invoked at both </profile> and </person>. However, I >could not find out the reason beyond that. > >Did anybody else observe this behavior? And if so, how can I fix it? > >Thanks, >Steffi > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Xmltk-devs mailing list >Xml...@li... >https://lists.sourceforge.net/lists/listinfo/xmltk-devs > > |