JATS4R / jats-validator-docker

JATS4R Schematron validation as a Docker web service

Home Page:https://jats-validator.hubmed.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

JATS4R Schematron validation as a Docker web service

https://jats-validator.hubmed.org/


Languages

Language:XSLT 94.1%Language:PHP 4.5%Language:Dockerfile 1.0%Language:HTML 0.4%