Hi John,

Right, I got caught somewhere with precedence...  Thank you,

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


On 3 April 2016 at 18:49, John Snelson wrote:
>
> 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
> General@developer.marklogic.com
> 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
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to