[Bug 2555] error in EBNF XQuery: DirElemConstructor in wrong place?

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





------- Additional Comments From davidc@nag.co.uk  2005-11-29 16:34 -------
(In reply to comment #2)
> ok. But that means selection and return control are in one statement.
> What would then mean /a/b/<c/>/d/e 
> 

it selects nothing as <c/> has no d children but
/a/b/<c><d><e/></d></c>/d/e 
would select one (newly created) e node for each /a/b node selected from the
original context.
It looks odd, but just think of each step as being a function returning some
sequence of nodes, and think of <c>....</c> as being a function that returns a
sequence of one new node, and it all works out in the end.

Received on Tuesday, 29 November 2005 16:35:01 UTC