Re: [EXTERNAL] json-ignore-whitespace-text-nodes

Eduard Drenth <[email protected]>
Newsgroups gmane.text.xml.exist
Message-ID <AS4P189MB2304695AC40F8CE9D5F4E181F1CF9@AS4P189MB2304.EURP189.PROD.OUTLOOK.COM>
Thanks for your response, it pointed me to what the problem was:


output:json-ignore-whitespace-text-nodes => exist:json-ignore-whitespace-text-nodes

Regards,


Eduard Drenth, Software Architekt


[email protected]


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/
[cid:f4170f80-6d2d-410c-b4fc-1d1f1430a12a]

gpg: pgp.key-server.io/pks/lookup?search=eduarddrenth

________________________________
From: Joe Wicentowski <[email protected]>
Sent: Wednesday, January 25, 2023 7:46 PM
To: Eduard Drenth <[email protected]>
Cc: Harris, Bernard T. (GSFC-5870) <[email protected]>; Exist-open <[email protected]>
Subject: Re: [Exist-open] [EXTERNAL] json-ignore-whitespace-text-nodes

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 <[email protected]<mailto:[email protected]>> wrote:
Besides your script not failing, what is the actual expected result?

On Wed, Jan 25, 2023 at 10:03 AM Eduard Drenth <[email protected]<mailto:[email protected]>> 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


[email protected]<mailto:[email protected]>


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/
[cid:185ea095e6fbabbb33e2]

gpg: pgp.key-server.io/pks/lookup?search=eduarddrenth<http://pgp.key-server.io/pks/lookup?search=eduarddrenth>

________________________________
From: Joe Wicentowski <[email protected]<mailto:[email protected]>>
Sent: Wednesday, January 25, 2023 12:06 PM
To: Harris, Bernard T. (GSFC-5870) <[email protected]<mailto:[email protected]>>
Cc: Exist-open <[email protected]<mailto:[email protected]>>
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 <[email protected]<mailto:[email protected]>> 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 <[email protected]<mailto:[email protected]>>
Date: Sunday, January 22, 2023 at 11:22 AM
To: Exist-open <[email protected]<mailto:[email protected]>>
Subject: [EXTERNAL] [Exist-open] json-ignore-whitespace-text-nodes



json-ignore-whitespace-text-nodes not supported anymore?







Eduard Drenth, Software Architekt



[email protected]<mailto:[email protected]>



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>

[cid:185ea095e6f4cff311]

gpg: pgp.key-server.io/pks/lookup?search=eduarddrenth<http://pgp.key-server.io/pks/lookup?search=eduarddrenth>

_______________________________________________
Exist-open mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/exist-open
--
Sent from my iPhone

_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open
image001.png (image/png, 10.6 KB) - not displayed
Outlook-p10lqgeu.png (image/png, 10.6 KB) - not displayed
Outlook-pfryyyri.png (image/png, 10.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.