Re: [basex-talk] Constructing and querying map structures in a dynamic way

2022-05-27 Thread Hans-Juergen Rennau
Well - but are such concerns related to using maps as the output? I do not think so, and therefore I suggest to avoid mixing specific how-to's with general challenges. By now you know the idiom how to construct maps dynamically, as you had already known how to construct node trees dynamically.

Re: [basex-talk] Encoding hassle ....

2022-05-27 Thread Marco Lettere
Oh yes thanks. Forgot to mention this. Forcing utf8 doesn't help. Il ven 27 mag 2022, 19:26 Bridger Dyson-Smith ha scritto: > Marco - > I'm sorry but I can only corroborate your findings, and that trying to > force UTF-8 by adding the encoding parameter to the functions doesn't seem > to help;

Re: [basex-talk] Encoding hassle ....

2022-05-27 Thread Christian Grün
Definitely looks like a bug. I’m currently on the road, but I’ll get to the bottom of this once I’m back. Bridger Dyson-Smith schrieb am Fr., 27. Mai 2022, 19:27: > Marco - > I'm sorry but I can only corroborate your findings, and that trying to > force UTF-8 by adding the encoding parameter

Re: [basex-talk] Encoding hassle ....

2022-05-27 Thread Bridger Dyson-Smith
Marco - I'm sorry but I can only corroborate your findings, and that trying to force UTF-8 by adding the encoding parameter to the functions doesn't seem to help; e.g. ) ./bin/basex BaseX 9.7.1 [Standalone] Try 'help' to get more information. > xquery file:current-dir()

[basex-talk] Encoding hassle ....

2022-05-27 Thread Marco Lettere
Dear all, after wrapping our heads around this for hours today, we don't know how to get rid of this inconsistency. Thus I ask for help ... SSCE: BaseX 9.6.4 [Standalone] Try 'help' to get more information. > xquery file:write-text("a1.txt", "°" || out:nl()) (: Same with

Re: [basex-talk] Constructing and querying map structures in a dynamic way

2022-05-27 Thread Graydon
On Fri, May 27, 2022 at 03:37:57PM +0200, Markus Elfring scripsit: > > Gaps? First, to avoid a misunderstanding: whereas map keys must not > > be the empty sequence, map values may. > > Special data sources might contain challenges for further > clarification of the desired referential integrity.

Re: [basex-talk] Constructing and querying map structures in a dynamic way

2022-05-27 Thread Markus Elfring
> Gaps? First, to avoid a misunderstanding: whereas map keys must not be the > empty sequence, map values may. Special data sources might contain challenges for further clarification of the desired referential integrity. Regards, Markus

Re: [basex-talk] Constructing and querying map structures in a dynamic way

2022-05-27 Thread Hans-Juergen Rennau
Hi Markus, you wrote "How would you determine where unexpected gaps occur?" Gaps? First, to avoid a misunderstanding: whereas map keys must not be the empty sequence, map values may. An elegant way to construct map entries safely - taking care that the key is not empty - is to use the map

Re: [basex-talk] Constructing and querying map structures in a dynamic way

2022-05-27 Thread Graydon
On Fri, May 27, 2022 at 10:50:57AM +0200, Markus Elfring scripsit: > > This code may for example be (most often is) a FLWOR expression. In > > this code, each entry is constructed by a call of function > > map:entry(). > > Now I stumble on the error message “[XPTY0004] Item expected, empty >

Re: [basex-talk] Constructing and querying map structures in a dynamic way

2022-05-27 Thread Markus Elfring
> although I do not quite understand your description Which wording variant would you have found clearer for the mentioned use case? > (why should I care for the representation of the map I construct?), * Selection of a general data structure for the handling of key/value pairs * I guess that