Skip to content

Releases: EHRI/ehri-frontend

XML Mapper binary

08 Sep 10:17
Compare
Choose a tag to compare
XML Mapper binary Pre-release
Pre-release

This is a pre-release of the standalone command-line running Xquery XML transformations from TSV mapping files, as described here.

If transformations use any of the in-build library functions in the xtra module, this file needs to be accessible locally to the tool. You can export it using the --print-functions option, e.g.

./xmlmapper --print-functions > xtra.xqm

Then, when running a transformation, provide the path to that file with the --functions|f option:

./xmlmapper --tsv transform.tsv --functions xtra.xqm input-file.xml

To override the default Xquery script that gets evaluated you can likewise export it using the --print-script option, modify the file to your liking, and then specify it using the --script|s option.