You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file module refers to the "XSLT and XQuery Serialization 3.0" spec. If that is taken literally, it cannot write arrays or maps of 3.1
And the serialize function was extended to allow map {...} serialization params, file:write and file:append should probably allow them to.
And writing map/arrays as JSON is a common task, there should probably be file:write-json, file:append-json functions that are like write/append with default map {"method": "json"} options
The text was updated successfully, but these errors were encountered:
It’s true, the spec should be updated one day (when the File Module was finalized, XQuery 3.0 was still predominant). – In BaseX, we have added some functions that should be added as well (https://docs.basex.org/wiki/File_Module).
The file module refers to the "XSLT and XQuery Serialization 3.0" spec. If that is taken literally, it cannot write arrays or maps of 3.1
And the serialize function was extended to allow
map {...}
serialization params,file:write
andfile:append
should probably allow them to.And writing map/arrays as JSON is a common task, there should probably be
file:write-json
,file:append-json
functions that are like write/append with defaultmap {"method": "json"}
optionsThe text was updated successfully, but these errors were encountered: