From: jessewu <jes...@gm...> - 2009-08-25 13:13:14
|
>From the home page: Site based on 1.2.6-rev:9165-20090617 Dannes Wessels-2 wrote: > > Hi, > > did you check with saxon? what version of eXist-db are you using? > > kind regards > > Dannes > > ps. > please register for the MailingList > > On Mon, Aug 24, 2009 at 8:53 PM, jessewu <jes...@gm...> wrote: > >> >> test XML idx1.xml: >> <?xml version="1.0"?> >> <Table> >> <Row> >> <Cell>AAA</Cell> >> <Cell Index="5" HRef= "http:??...">YYY</Cell> >> <Cell>BBB</Cell> >> </Row> >> </Table> >> >> Run this in eXist: >> >> let $tr := doc("idx1.xml")/Table/Row >> return >> <test> >> { >> (: produced incorrect results :) >> for $i in 1 to count($tr/Cell) >> let $pnidx := $tr/Cell[$i]/preceding-sibling::Cell[not(@Index)] >> return >> <dmy1> >> {$pnidx } >> </dmy1> >> } >> (: produced expected results :) >> { >> for $c2 in $tr/Cell >> let $pnidx := $c2/preceding-sibling::Cell[not(@Index)] >> return >> <dmy2> >> {$pnidx } >> </dmy2> >> } >> </test> >> >> Result: >> <test> >> <dmy1/> >> <dmy1> >> <Cell>AAA</Cell> >> </dmy1> >> <dmy1> >> <Cell>AAA</Cell> >> <Cell Index="5" HRef="http:??...">YYY</Cell> >> >> </dmy1> >> <dmy2/> >> <dmy2> >> <Cell>AAA</Cell> >> </dmy2> >> <dmy2> >> <Cell>AAA</Cell> >> </dmy2> >> </test> >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/possible-bug---when-loop-thru-elements-tp25121530p25121530.html >> Sent from the exist-open mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and >> focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > > > > -- > eXist-db Native XML Database - http://exist-db.org > Join us on linked-in: http://www.linkedin.com/groups?gid=35624 > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > > -- View this message in context: http://www.nabble.com/possible-bug---when-loop-thru-elements-tp25121530p25133988.html Sent from the exist-open mailing list archive at Nabble.com. |