W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2005

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

From: <bugzilla@wiggum.w3.org>
Date: Tue, 29 Nov 2005 16:34:27 +0000
To: public-qt-comments@w3.org
Cc:
Message-Id: <E1Eh8R1-0003El-Tn@wiggum.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:42 GMT