From: Joe W. <jo...@gm...> - 2023-01-25 18:46:55
|
Hi Eduard, By examining the tests included in the eXist source, I found an example that exercises the serialization method that you're using. Here's code that demonstrates how to use it. https://gist.github.com/joewiz/4f06d44794a268d2b262034b31eac5c4 The relevant PR that enabled the use of these eXist-specific serialization methods in fn:serialize() is: https://github.com/eXist-db/exist/issues/2394 Joe On Wed, Jan 25, 2023 at 12:46 PM Joe Wicentowski <jo...@gm...> wrote: > Besides your script not failing, what is the actual expected result? > > On Wed, Jan 25, 2023 at 10:03 AM Eduard Drenth <ed...@fr...> > wrote: > >> declare variable $teidictjson:jsonparams := <output:serialization-parameters xmlns:output="http://www.w3.org/2010/xslt-xquery-serialization"> >> >> <output:method value="json"/> >> <output:json-ignore-whitespace-text-nodes value="yes"/> >> </output:serialization-parameters>; >> >> fn:serialize(<noresults>no results</noresults>,$teidictjson:jsonparams) >> >> In 6.1.0 the above fails >> >> >> >> Eduard Drenth, Software Architekt >> >> >> ed...@fr... >> >> >> Doelestrjitte 8 >> >> 8911 DX Ljouwert >> (058) 213 14 14 >> >> +31 62 094 34 28 >> https://www.fryske-akademy.nl/ >> https://frysker.nl/ >> https://frisian.eu/ >> >> gpg: pgp.key-server.io/pks/lookup?search=eduarddrenth >> ------------------------------ >> *From:* Joe Wicentowski <jo...@gm...> >> *Sent:* Wednesday, January 25, 2023 12:06 PM >> *To:* Harris, Bernard T. (GSFC-5870) <ber...@na...> >> *Cc:* Exist-open <exi...@li...> >> *Subject:* Re: [Exist-open] [EXTERNAL] json-ignore-whitespace-text-nodes >> >> Could you provide more info? How to reproduce? Expected vs. actual >> results? What version of eXist? >> >> On Wed, Jan 25, 2023 at 5:39 AM Harris, Bernard T. (GSFC-5870) via >> Exist-open <exi...@li...> wrote: >> >> I noticed the same thing. But I was working with RESTXQ (and exist-db >> 6.0.1) for the first time and thought I might need to do things differently >> than the way it had worked in the past. I would like to know if this is a >> bug or if there is a different way to accomplish the same thing. >> >> >> >> Bernie Harris >> >> >> >> *From: *Eduard Drenth <ed...@fr...> >> *Date: *Sunday, January 22, 2023 at 11:22 AM >> *To: *Exist-open <exi...@li...> >> *Subject: *[EXTERNAL] [Exist-open] json-ignore-whitespace-text-nodes >> >> >> >> json-ignore-whitespace-text-nodes not supported anymore? >> >> >> >> >> >> >> >> Eduard Drenth, Software Architekt >> >> >> >> ed...@fr... >> >> >> >> Doelestrjitte 8 >> >> 8911 DX Ljouwert >> >> (058) 213 14 14 >> >> +31 62 094 34 28 >> >> https://www.fryske-akademy.nl/ >> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fryske-akademy.nl%2F&data=05%7C01%7CBernard.T.Harris%40nasa.gov%7C0bf6fca97ad74a78833108dafc94d22f%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C638100013365653479%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=GHeHpN59VC5xjXYZv%2FTqgld4HFzVtNe4O0eZnJRM4og%3D&reserved=0> >> >> https://frysker.nl/ >> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffrysker.nl%2F&data=05%7C01%7CBernard.T.Harris%40nasa.gov%7C0bf6fca97ad74a78833108dafc94d22f%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C638100013365653479%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=VLqoS94QI7sj5wR0WQ%2FLz20atSzleWdn7HMydkykkF0%3D&reserved=0> >> >> https://frisian.eu/ >> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffrisian.eu%2F&data=05%7C01%7CBernard.T.Harris%40nasa.gov%7C0bf6fca97ad74a78833108dafc94d22f%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C638100013365653479%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=NZHee7QsEXzXI0OmaS7aEhIX%2BTCUlil3o9icruakOGY%3D&reserved=0> >> >> gpg: pgp.key-server.io/pks/lookup?search=eduarddrenth >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> >> -- >> Sent from my iPhone >> > |