Question about map:merge

Wednesday, 2 September 2020 · 4 messages · last reply 3 Sep 2020
MS
Markus Schmid2 Sep 2020 21:19 #
Hi, I have a small code sample ScriptOrig.xqy (https://gitlab.com/ms452206/stackoverflow63684864). I am not sure what is wrong. While I expected this output:
<database name="DS0002" autosar="AutosarFoo02.arxml" fibex="FibexFoo02.xml"/>
<database name="DS0003" autosar="AutosarFoo03.arxml" fibex="FibexFoo03.xml“/>
I got this:
<database name="DS0002" autosar="AutosarFoo02.arxml" fibex=""/>
<database name="DS0003" autosar="AutosarFoo03.arxml" fibex="“/>
The modified version ScriptModified.xqy works as required. You can reproduce this using BaseX 9.4.2. I have more weird function using map:entry. Thank you for exploring this. Markus
CG
Christian Grün2 Sep 2020 22:48 #
Hi Markus, Thanks for reporting this. I have opened an issue with a minimized example to track this down [1]. A bug fix will probably be available tomorrow Cheers, Christian [1] https://github.com/BaseXdb/basex/issues/1935
Quoted text · Markus Schmid · 25 lines
On Wed, Sep 2, 2020 at 9:19 PM Markus Schmid <schmid51 at t-online.de> wrote: > > Hi, > > I have a small code sample ScriptOrig.xqy (https://gitlab.com/ms452206/stackoverflow63684864). > > I am not sure what is wrong. While I expected this output: > > <database name="DS0002" autosar="AutosarFoo02.arxml" fibex="FibexFoo02.xml"/> > <database name="DS0003" autosar="AutosarFoo03.arxml" fibex="FibexFoo03.xml“/> > > I got this: > > <database name="DS0002" autosar="AutosarFoo02.arxml" fibex=""/> > <database name="DS0003" autosar="AutosarFoo03.arxml" fibex="“/> > > The modified version ScriptModified.xqy works as required. > > You can reproduce this using BaseX 9.4.2. > > I have more weird function using map:entry. > > Thank you for exploring this. > > Markus
CG
Christian Grün2 Sep 2020 23:06 #
Quoted text · Christian Grün · 2 lines
> example to track this down [1]. A bug fix will probably be available > tomorrow
Things worked out faster than I expected. Feel free to check out the latest snapshot [1]. Best, Christian [1] https://files.basex.org/releases/latest/
Quoted text · Christian Grün · 33 lines
> > Cheers, > Christian > > [1] https://github.com/BaseXdb/basex/issues/1935 > > > > On Wed, Sep 2, 2020 at 9:19 PM Markus Schmid <schmid51 at t-online.de> wrote: > > > > Hi, > > > > I have a small code sample ScriptOrig.xqy (https://gitlab.com/ms452206/stackoverflow63684864). > > > > I am not sure what is wrong. While I expected this output: > > > > <database name="DS0002" autosar="AutosarFoo02.arxml" fibex="FibexFoo02.xml"/> > > <database name="DS0003" autosar="AutosarFoo03.arxml" fibex="FibexFoo03.xml“/> > > > > I got this: > > > > <database name="DS0002" autosar="AutosarFoo02.arxml" fibex=""/> > > <database name="DS0003" autosar="AutosarFoo03.arxml" fibex="“/> > > > > The modified version ScriptModified.xqy works as required. > > > > You can reproduce this using BaseX 9.4.2. > > > > I have more weird function using map:entry. > > > > Thank you for exploring this. > > > > Markus
MS
Markus Schmid3 Sep 2020 06:51 #
Hi Christian, looks good with BaseX 9.4.3 beta. Fastest „support" ever 👍. Markus
Quoted text · Christian Grün · 47 lines
> Am 02.09.2020 um 23:06 schrieb Christian Grün <christian.gruen at gmail.com>: > >> example to track this down [1]. A bug fix will probably be available >> tomorrow > > Things worked out faster than I expected. Feel free to check out the > latest snapshot [1]. > > Best, > Christian > > [1] https://files.basex.org/releases/latest/ > > >> >> Cheers, >> Christian >> >> [1] https://github.com/BaseXdb/basex/issues/1935 >> >> >> >> On Wed, Sep 2, 2020 at 9:19 PM Markus Schmid <schmid51 at t-online.de> wrote: >>> >>> Hi, >>> >>> I have a small code sample ScriptOrig.xqy (https://gitlab.com/ms452206/stackoverflow63684864). >>> >>> I am not sure what is wrong. While I expected this output: >>> >>> <database name="DS0002" autosar="AutosarFoo02.arxml" fibex="FibexFoo02.xml"/> >>> <database name="DS0003" autosar="AutosarFoo03.arxml" fibex="FibexFoo03.xml“/> >>> >>> I got this: >>> >>> <database name="DS0002" autosar="AutosarFoo02.arxml" fibex=""/> >>> <database name="DS0003" autosar="AutosarFoo03.arxml" fibex="“/> >>> >>> The modified version ScriptModified.xqy works as required. >>> >>> You can reproduce this using BaseX 9.4.2. >>> >>> I have more weird function using map:entry. >>> >>> Thank you for exploring this. >>> >>> Markus

⚡Generated with XQuery