Collection of XSLTs to adapt ISO-19139 XML metadata according to https://ecospheres.gitbook.io/recommandations-iso-dcat/.
pip install -r requirements.txt
pytest run_tests.py
A test case for a given xslts/$transform.xml
is the combination of:
- An input metadata record:
fixtures/$input.xml
. - Either:
- An expected transformed metadata record:
tests/$transform.$input.xml
. - An expected error message:
tests/$transform.$input.err
.
- An expected transformed metadata record:
- Metadata records copied from real catalogs should be named as
<catalog-name>--<record-id>.xml
. - Fake test records should be named as
sample--<short-description>.xml
.