From: Wolfgang M. <wol...@ex...> - 2004-06-02 14:00:54
|
Hi, I fixed the bug in today's CVS. Wolfgang On Friday 21 May 2004 14:51, Jaksch Stefan wrote: > Hi, > > I think there is a bug when using the ancestor axis in Xpath (eXist from > CVS, 04-05-19): > > This is my document: > <branch id="10"> > <branch id="11"> > <branch id="12"> > <branch id="13" link="1"> > <child id="13"/> > </branch> > <branch id="14" link="2"> > <child id="14"/> > </branch> > <branch id="15" link="3"> > <child id="15"/> > </branch> > <child id="12"/> > </branch> > <child id="11"/> > </branch> > <child id="10"/> > </branch> > > The query is: //branch[@id="13"]/ancestor::branch/child > Result is: <child id="12"/> > > When I change the query to: > //branch[@id="13"]/ancestor::*/child > > I get the expected result: > <child id="12"/> > <child id="11"/> > <child id="10"/> > > Is this a known issue, and are there other workarounds than using the > wildcard? > Regards, > Stefan |