expath-cg
expath-cg copied to clipboard
File module and XPath 3.1
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