[xquery-talk] Grouping Scope and counters
Ihe Onwuka
ihe.onwuka at gmail.com
Sat May 24 00:05:32 PDT 2014
for $x at $i in blah
group by $x/@a
return
if ($i mod 10000 eq 0) then ..... else .....
Now the problem is that XQuery (of the eXist variety) denies knowledge of
the existence of the $i variable in the return clause. Presumably this is
because the group construct interferes with the lexical scoping.
I do not have to do this with XQuery as I can solve it downstream but I
would be interested in learning more about this scenario.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://x-query.com/pipermail/talk/attachments/20140524/798dbcf6/attachment.html>
More information about the talk
mailing list