-
Notifications
You must be signed in to change notification settings - Fork 5
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
validation fails due to missing file #53
Comments
Using oxygen, I am not getting this error when validating against a local copy of https://github.com/plazi/TaxPub/tree/v1.0-gamma using either the default engine (Xerces?) or xmllint (which does send warnings regarding duplicate models and the non-determistic nomenclature with its clumsy use of |
In case some of the base JATS files in the repo might have been lost, one could simply download the official JATS 1.1 files at: https://ftp.ncbi.nih.gov/pub/jats/publishing/1.1/JATS-Publishing-1-1-MathML3-DTD.zip and then simply place the files:
from https://github.com/plazi/TaxPub/tree/v1.0-gamma and then validate against tax-treatment-NS0-v1.dtd in that context. This is probably the preferred method anyway, as it insures that one is using the correct set of base JATS files being extended by TaxPub which is entirely done by the files listed above. |
Doing this, again, I am not able to replicate the missing file error. Perhaps in other validation scenarios and environments it does not work. @teodorgeorgiev and @gsautter, how are you performing validation? |
@tcatapano we are using the standard PHP DOMDocument::validate. It takes the DTD from the XML, which in our case we store locally: |
@tcatapano also having a local copy of the DTD files from Pensoft available to the validator does fix the problem, and the server currently uses it this way ... |
OK, now I see ... so far I was trying to validate it against tax-treatment-NS0.dtd and the result was: I did as you suggested above (downloaded the official JATS 1.1 and added all "-NS0-v1" files). However, now although I think my XML is valid I get the following error:
Here is my test file |
@teodorgeorgiev: Yes. It's a known issue. See: #52. In the meantime, if at all possible try using the Xerces parser (https://xerces.apache.org/index.html) which I do not think will report this error. I'll prioritize a patch for this. Hope to get it out this weekend. |
Closing |
both @teodorgeorgiev and @gsautter report that validation is failing do to missing file
from @teodorgeorgiev:
failed to load external entity "../nlm/JATS-mathmlsetup1.ent" on line 226
from @gsautter in plazi/ggxml2taxpub#43 (comment)
The text was updated successfully, but these errors were encountered: