From: Wolfgang M. <wol...@ex...> - 2004-12-22 18:14:48
|
Hi, The 3 issues you reported were rather easy to debug, so I already fixed them in today's development snapshot. Thanks, Wolfgang Yury Soldak wrote: > Hi, > > I've just noticed strange behaviour of eXist when using attribute axis. > I use eXist-snapshot-20041119.jar > There is only one standard document "users.xml" in DB. > > So, look at following queries: > > a) for $nd in document("/db/system/users.xml")/auth/groups/child::node() > return $nd > > b) for $nd in > document("/db/system/users.xml")/auth/groups/attribute::node() > return $nd > > c) for $nd in document("/db/system/users.xml")/auth/groups/attribute::* > return $nd > > ---- > > Problems: > 1) I guess a) query should return only subelements (not attributes) of > "groups" element. But it is not true - eXist returns: > > 2 > <group name="dba" id="1"/> > <group name="guest" id="2"/> > > 2) I guess b) query should return an error (attribute is not node). But > eXist returns the same result as in 1). > > 3) I guess c) query should return all attributes of an "groups" element > (i.e. "2"), but result is: > <group name="dba" id="1"/> > <group name="guest" id="2"/> > > > This is a bug(s) in eXist or my guesses are wrong? > Thanks. > > Yury Soldak. > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open |