[Bug 4392] Typing issues with //

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4392





------- Comment #1 from mike@saxonica.com  2007-03-20 17:01 -------
I can't comment very intelligently on static typing issues, but just one
observation: the reason for the "treat as document-node()" in the expansion of
"/" is to ensure that "/" is an error when the context item is a node in a tree
whose root is not a document node. In such a tree, root() will select an
element node (say), but "/" throws an error.

Michael Kay

Received on Tuesday, 20 March 2007 17:01:16 UTC