Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File module and XPath 3.1 #133

Open
benibela opened this issue Jan 23, 2021 · 1 comment
Open

File module and XPath 3.1 #133

benibela opened this issue Jan 23, 2021 · 1 comment
Assignees
Labels

Comments

@benibela
Copy link

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

@ChristianGruen
Copy link
Member

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).

@ChristianGruen ChristianGruen self-assigned this Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants