From: Sebastian B. <sb...@jb...> - 2004-05-17 21:22:34
|
On Monday 17 May 2004 19:46, Erik Bruchez wrote: > The following fragment returns a different result with 1_0b1 and > 20040510: > > xquery version "1.0"; > <result> > {(/a:p1[a:p2 = '123')[1]} > </result> > > With 1_0b1, I used to get: > > <result> > <a:p1> > <a:p2>123</a:p2> > </a:p1> > </result> This seems right. If I change the query to (missing "]"): xquery version "1.0"; <result> {(/p1[p2 = '123'])[1]} </result> I get the following result: <result> <p1> <p2>123</p2> </p1> </result> This is what you expected, isn't it? I am on the current CVS version. Sebastian |