RE: Question about XPath expressions
"Michael Rys" <[email protected]> Mon, 8 Nov 2004 09:50:52 -0800
| Newsgroups | gmane.comp.web.query-languages |
|---|---|
| Message-ID | <BAE415CEAA831548800F68C44E905AF5D7CEAF@RED-MSG-60.redmond.corp.microsoft.com> |
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: [email protected] [mailto:[email protected]] On Behalf Of > Arjan Huijzer > Sent: Monday, November 08, 2004 1:33 AM > To: [email protected] > 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