Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not recognise DTD: JATS-archivearticle1-mathml3.dtd #8

Closed
Melissa37 opened this issue May 15, 2019 · 5 comments
Closed

Does not recognise DTD: JATS-archivearticle1-mathml3.dtd #8

Melissa37 opened this issue May 15, 2019 · 5 comments
Assignees

Comments

@Melissa37
Copy link

Screenshot 2019-05-15 at 12 53 54

@hubgit

@hubgit
Copy link
Member

hubgit commented May 15, 2019

@Melissa37 Could you show the doctype from the start of the XML (or attach the whole XML file)?

@hubgit hubgit self-assigned this May 15, 2019
@Melissa37
Copy link
Author

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20151215//EN" "JATS-archivearticle1-mathml3.dtd">
<article article-type="research-article" dtd-version="1.2"
    xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML"
    xmlns:xlink="http://www.w3.org/1999/xlink">

Github does not support uploading XML files. I can send it to you via email if that helps?

@hubgit
Copy link
Member

hubgit commented May 15, 2019

That's plenty, thanks :)

The problem is that the publicID in the XML file's doctype is incorrect - it should be

-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN

rather than

-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20151215//EN

We can probably do something to check the public ID against the list of supported DTDs before attempting validation.

@Melissa37
Copy link
Author

Fab, thanks for letting me know, I tried with updated and it worked. Now got to fix our production files :-(

@hubgit
Copy link
Member

hubgit commented May 15, 2019

I've created #9 for checking the public ID and returning a useful error message if it's not supported.

@hubgit hubgit closed this as completed May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants