JATS4R Schematron validation as a Docker web service
The Dockerfile uses the Schematron skeleton to build an XSLT 2.0 file from an input Schematron file.
The Docker container runs an Apache web server listening on port 80, hosting a set of PHP endpoints that validate an input XML file against the appropriate JATS DTD, format the XML, and/or validate the XML against the Schematron rules using SaxonProcessor
.
docker build . --platform linux/amd64 --tag jats-validator
docker run --rm --publish 4000:80 --name jats-validator jats-validator
The web service is deployed to Cloud Run via GitHub Actions when the main branch updates.