- From: Michael Rys <mrys@microsoft.com>
- Date: Mon, 8 Nov 2004 09:50:52 -0800
- To: "Arjan Huijzer" <huijzer@gmail.com>, <www-ql@w3.org>
The syntactic rule for OrExpr is used to define operator precedence and NOT what type the result is. So an OrExpr may return a Boolean result (if the or operator appears in the syntax) or something else (if only the non-optional part of the OrExpr is used). HTH Michael > -----Original Message----- > From: www-ql-request@w3.org [mailto:www-ql-request@w3.org] On Behalf Of > Arjan Huijzer > Sent: Monday, November 08, 2004 1:33 AM > To: www-ql@w3.org > Subject: Question about XPath expressions > > > Hello, > > I have a question about the usage of XPath expressions. > > In the latest XQuery specifications it says that the last step of a > XPath expression can now return a sequence of nodes (I.2 29 Oct 2004). > Looking at the grammar rules (A.1 EBNF), it seems that PathExpr (rule > 61) is a special form of an OrExpr (43), which can only return a > "true" or "false" value. > > Are the specifications not clear on this point or am I missing something? > > Thanks in advance for any help! > > Arjan Huijzer > The Netherlands
Received on Monday, 8 November 2004 17:52:13 UTC