JATS4R / jats-validator

JATS4R Schematron validation as a web service
https://jats-validator.vercel.app/
3 stars 1 forks source link

Validator not working #32

Closed Melissa37 closed 1 year ago

Melissa37 commented 2 years ago
Screenshot 2022-10-01 at 08 48 30

Hi there

I have received feedback from a user that the service is not working and I tested it, see screenshot of the response I received.

Is there a problem with the code that you can fix?

Thanks!

Melissa

hubgit commented 2 years ago

I just tried with one article XML and it finished successfully. Are you able to share any of the article XML files that are failing?

castedo commented 2 years ago

Here's a JATS XML file that I see failing: https://archive.softwareheritage.org/browse/content/sha1_git:e3674cd3cd1e422aac79bf43492dada47198a0b8/raw/

hubgit commented 2 years ago

It seems that for some reason the catalog resolution isn't working properly, as validating the example file succeeds if I change JATS-archivearticle1.dtd to http://jats.nlm.nih.gov/archiving/1.2/JATS-archivearticle1.dtd

It might take a while to work out why Saxon isn't using the public ID (-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN) to find the DTD file locally.

castedo commented 2 years ago

Thanks for looking into it!

@hubgit What's the relationship between

To be honest, I probably prefer to use an OCI container image like https://github.com/JATS4R/jats-validator-docker but that just takes the XML as stdin, takes a few command line options and then spits out a report to stdout.

Has anybody built such a container image?

hubgit commented 1 year ago

The issue with catalog resolution was reported upstream and a fix was released in SaxonC 12.0.

hubgit commented 1 year ago

The validator is now updated to SaxonC 12.1, so this issue should be fixed.

castedo commented 1 year ago

Thank you!

I just tried it out with some newly generated JATS XML and it appears to be working great.