That is correct behaviour according to the XQuery specification.

John

On 03/04/2016 10:55, Florent Georges wrote:
Hi,

The following query gives a parsing error:

    let $e := <e/>
    return
       $e/x eq 'y' and every $z in ('a','b') satisfies $e/* = $z

The error (it points at the dollar character in "every $z"):

    XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected 
Dollar_, expecting $end or SemiColon_

If you put parenthesis around the right-hand side operand of the "and" (that 
is, around "every ... = $z"), then it succeeds.

With 8.0-4.2.  HTH,

--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/






_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general




--
John Snelson, Lead Engineer                    http://twitter.com/jpcs
MarkLogic Corporation                         http://www.marklogic.com
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to