Closed rhdunn closed 8 years ago
is the ancestor::node here pointing to an /ancestor with an element with name 'node'? Something like this?
let $foo := <x><node><bar></bar></node></x>
return ($foo//bar/ancestor::node)[1]
It shouldn't be treated as an error, I agree.
That is correct, yes.
Given the XPath:
the error message:
is displayed. This is incorrect, as the construct is valid. It looks like the syntax is trying to validate structures like
node()
.