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
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to