Re: [basex-talk] Scope of a xPath variable

2022-12-20 Thread Leo Studer
Hans-Juergen, thanks for this insight, that sheds even more light for me into the grouping with xquery... > On 20 Dec 2022, at 08:42, Hans-Juergen Rennau wrote: > > Thank you for your kind words, Gerrit! Until a few weeks ago, my use of > grouping was a groping one also in my case - until I le

Re: [basex-talk] Scope of a xPath variable

2022-12-19 Thread Hans-Juergen Rennau
PS. Pardon - a correction. The first clause may also be a sliding window or a tumbling window. Am Dienstag, 20. Dezember 2022 um 08:44:02 MEZ hat Hans-Juergen Rennau Folgendes geschrieben: Thank you for your kind words, Gerrit! Until a few weeks ago, my use of grouping was a groping

Re: [basex-talk] Scope of a xPath variable

2022-12-19 Thread Hans-Juergen Rennau
Thank you for your kind words, Gerrit! Until a few weeks ago, my use of grouping was a groping one also in my case - until I learned from the spec that the FLWOR mechanics are only fully understood if we regard the clauses as a pipeline of stations, each one transforming an input tuple stream i

Re: [basex-talk] Scope of a xPath variable

2022-12-19 Thread Imsieke, Gerrit, le-tex
Thank you, Hans-Jürgen, for shedding really insightful light (if there is such a thing) on this aspect of XQuery grouping, which I use gropingly (pun intended) without fully understanding it. On 19.12.2022 23:19, Hans-Juergen Rennau wrote: I think the reason is a different one - it is related t

Re: [basex-talk] Scope of a xPath variable

2022-12-19 Thread Hans-Juergen Rennau
I think the reason is a different one - it is related to the precise semantics of the group by clause. The group by clause maps each group of input tuples with equal grouping key(s) to a single output tuple, in which- the grouping variable(s) is/are bound to the key values (as you would expect)

Re: [basex-talk] Scope of a xPath variable

2022-12-19 Thread Martin Honnen
On 12/19/2022 10:58 PM, Graydon wrote: On Mon, Dec 19, 2022 at 10:43:25PM +0100, Leo Studer scripsit: In the code below I encounter the problem, that I have to define the same xPath function variable $organizations twice and I do not understand why. In line 10, you've used a let clause to bi

Re: [basex-talk] Scope of a xPath variable

2022-12-19 Thread Graydon
On Mon, Dec 19, 2022 at 10:43:25PM +0100, Leo Studer scripsit: > In the code below I encounter the problem, that I have to define the same > xPath function variable $organizations twice and I do not understand why. In line 10, you've used a let clause to bind a variable of type function to the n

Re: [basex-talk] Scope of a xPath variable

2022-12-19 Thread Martin Honnen
On 12/19/2022 10:43 PM, Leo Studer wrote: Hello Cracks ;-) In the code below I encounter the problem, that I have to define the same xPath function variable $organizations twice and I do not understand why. Running the code with the newest versions of BaseX or with Saxon EE, I get a runtime err