Subject:Weird XQuery results? Author:Chuck White Date:17 Mar 2003 06:41 PM
It seems to me that the following simple XQuery should return nothing, because the expression is calling for the parent node, and there can't be a parent node of the root node, which is the context node at the time the query is being initialized. However, in Stylus, it actually does return something -- the entire XML document:
Subject:Weird XQuery results? Author:(Deleted User) Date:18 Mar 2003 06:08 AM
Hi Chuck,
the XQuery specs is not so clear about what is the current context node at startup; our choice was to set the document element as the startup context node, so the ".." axis will return the document node.