Hi, On Mon, Apr 22, 2013 at 11:28 AM, Lukas Eder <[email protected]> wrote: > I had recently thought about something similar, in another context. > Specifically, should the following queries return "bar" or not? > > SELECT * FROM [nt:base] AS n > WHERE ISDESCENDANTNODE(n, '/foo') > > Or > > SELECT * FROM [nt:base] AS n > WHERE ISCHILDNODE(n, '/foo')
I would have them return the "bar" node, based on the fact that both the ISDESCENDANTNODE and ISCHILDNODE constraints can be evaluated syntactically by looking only at the path "/foo/bar" without reading anything from the "foo" node. BR, Jukka Zitting
