项目作者: JATS4R

项目描述 :
JATS4R Schematron validation as a Docker web service
高级语言: XSLT
项目地址: git://github.com/JATS4R/jats-validator-docker.git
创建时间: 2019-08-10T12:44:03Z
项目社区:https://github.com/JATS4R/jats-validator-docker

开源协议:

下载


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:
    1. docker build . --platform linux/amd64 --tag jats-validator
  2. Start the Docker container:
    1. docker run --rm --publish 4000:80 --name jats-validator jats-validator
  3. 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.