From: Jens Ø. P. <oe...@gm...> - 2013-12-05 13:17:35
|
Hi Ulrike, This is not the case in 2.1. # xquery version "3.0"; let $input := <test> <a n="1">1</a> <a n="2">2</a> <a n="3">3</a> </test> return $input/a[@n eq '2']/following-sibling::a # gives the correct result. I doubt that there are changes from 2.0 to 2.1 in this area. Would you run this on 2.0 and check? Cheers, Jens On 21 Nov 2013, at 11:57, Ulrike Henny <uh...@us...> wrote: > > [bugs:#833] no results with following-sibling in XPath > > Status: open > Created: Thu Nov 21, 2013 10:57 AM UTC by Ulrike Henny > Last Updated: Thu Nov 21, 2013 10:57 AM UTC > Owner: nobody > > With exist 2.0, rev. 18252 a query using the XPath-expression following-sibling::ELEMENT-NAME does not return any results where they are expected. preceding-sibling::ELEMENT-NAME, in contrast, does return the expected results. > > This was the example tested in eXide: > > XML: > > > > > > XQuery: > doc("/db/apps/rac/data/vis/3_concept-tree.xml")//concept[@label="Venetia et Histria"][@uid="1.2.24.2"]/following-sibling::concept > > yields no results. > > doc("/db/apps/rac/data/vis/3_concept-tree.xml")//concept[@label="Venetia et Histria"][@uid="1.2.24.2"]/preceding-sibling::concept > > 1 result: > as expected. > > Thanks in advance for any help! > Ulrike > > Sent from sourceforge.net because exi...@li... is subscribed to https://sourceforge.net/p/exist/bugs/ > > To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/exist/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk_______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development |