JATS4R / old-website

Static Jekyll site for JATS4R.org
http://jats4r.org/
The Unlicense
5 stars 2 forks source link

Validate XML against DTD with xmllint, any of the JATS DTDs #25

Closed Klortho closed 9 years ago

Klortho commented 9 years ago

@hubgit,

Here you go -- this is a good stopping point, I think. This supercedes your PR #19. I did a pretty major refactoring of validate.js, but the main way you use xmllint.js is intact.

You can test this at http://jats4r.org/test/validate/.

I added test cases, so now, among the ones we have in samples are:

I think that covers all the possibilities with regards to doctype declarations. Next it will be necessary to get it to validate against RNG and Schematron.