W3C home > Mailing lists > Public > www-ql@w3.org > October to December 2004

RE: Question about XPath expressions

From: Michael Rys <mrys@microsoft.com>
Date: Mon, 8 Nov 2004 09:50:52 -0800
Message-ID: <BAE415CEAA831548800F68C44E905AF5D7CEAF@RED-MSG-60.redmond.corp.microsoft.com>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:43:43 UTC