Skip to content

JATS4R/jats-validator-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker

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.

Usage

  1. Build the Docker image:
docker build . --platform linux/amd64 --tag jats-validator
  1. Start the Docker container:
docker run --rm --publish 4000:80 --name jats-validator jats-validator
  1. Open http://localhost:4000/ and choose a JATS XML file to validate.

Deployment

The web service is deployed to Cloud Run via GitHub Actions when the main branch updates.