Subject:incorrect syntax? Author:(Deleted User) Date:19 Apr 2006 03:03 AM
Hi Adriaan,
you have found a bug in the XQuery parser; the "namespace" step in the $a/namespace expression is mistakenly assumed to be part of a "declare namespace" declaration.
Thanks,
Alberto
PS: the correct query would be
let $a := (<wrapper><namespace/></wrapper>)
return ($a/*[name() = "namespace"], $a/namespace)
otherwise the $a is pointing to the element <namespace> and trying to find an element named "namespace" in its child axis will find nothing.