This repository contains:
- XSL files for conversion from JATS XML to various other formats.
- A PHP class for using the XSL.
- Schema files fetched from third parties, for use in conversion and validation.
Add <nextCatalog catalog="file:///path/to/jats-conversion/schema/catalog.xml"/>
to your system's catalog file (e.g. at /etc/xml/catalog
) to avoid fetching resources from the network.
Validate a JATS XML file using:
Convert and validate against:
-
Run
tests/validate.sh filename
to validate a JATS XML file. -
Output: any validation errors; NLM style report; HTML article preview.
- Run
cd schema && make fetch
to fetch all the resources.