-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Christian GrĂ¼n wrote:
This was the missing link for moving a script from exist-db to BaseX. A more complete example in the docs would be helpful here.
To get a better understanding, could you give me a small example how eXist converts XML to JSON, or a link to their documentation? Does it also support %output:method('json')?
This is the script that serializes to (XML), JSON and HTML in existdb
https://gist.github.com/zopyx/eee05f7a421a6c0b6b80
I can not recall where I found my primary source for RESTXQ scripts in exist but there are some of their demos
https://github.com/eXist-db/demo-apps/blob/master/examples/xforms/restxq-dem...
http://exist-db.org/exist/apps/doc/xquery.xml#serialization
My broader goal is to figure out how to write scripts for both databases in a compatible way in order to keep the necessary changes as minimal as possible.
Andreas