Unable to work with modular DTD?
See original GitHub issueProblem
When editing a file with correct DOCTYPE and available DTD files I get message saying the DTD has 41 errors:

The DTD in question is the JATS (Journal Article Tagging Suite), which is a NISO Z39.96-2019 standard maintained by the NLM (U.S. National Library of Medicine), and it most certainly does not have any errors.
I feel that the server is working, for when I remove the system identifier I get the correct error:

Please, any ideas as to what might be wrong?
DTD library and test file
This DTD is available at ftp://ftp.ncbi.nih.gov/pub/jats/publishing/1.1d3/JATS-Publishing-1-1d3-MathML2-DTD.zip and is composed of the following files, which include a sample test XML file (marked below).
./
βββ catalog-jats-v1-1d3-no-base.xml
βββ catalog-jats-v1-1d3-with-base.xml
βββ iso8879
βΒ Β βββ isobox.ent
βΒ Β βββ isocyr1.ent
βΒ Β βββ isocyr2.ent
βΒ Β βββ isodia.ent
βΒ Β βββ isolat1.ent
βΒ Β βββ isolat2.ent
βΒ Β βββ isonum.ent
βΒ Β βββ isopub.ent
βββ iso9573-13
βΒ Β βββ isoamsa.ent
βΒ Β βββ isoamsb.ent
βΒ Β βββ isoamsc.ent
βΒ Β βββ isoamsn.ent
βΒ Β βββ isoamso.ent
βΒ Β βββ isoamsr.ent
βΒ Β βββ isogrk3.ent
βΒ Β βββ isomfrk.ent
βΒ Β βββ isomopf.ent
βΒ Β βββ isomscr.ent
βΒ Β βββ isotech.ent
βββ JATS-ali-namespace1.ent
βββ JATS-articlemeta1.ent
βββ JATS-backmatter1.ent
βββ JATS-chars1.ent
βββ JATS-common1.ent
βββ JATS-common-atts1.ent
βββ JATS-default-classes1.ent
βββ JATS-default-mixes1.ent
βββ JATS-display1.ent
βββ JATS-format1.ent
βββ JATS-funding1.ent
βββ JATS-journalmeta1.ent
βββ JATS-journalpubcustom-classes1.ent
βββ JATS-journalpubcustom-mixes1.ent
βββ JATS-journalpubcustom-models1.ent
βββ JATS-journalpubcustom-modules1.ent
βββ JATS-journalpublishing1.dtd
βββ JATS-link1.ent
βββ JATS-list1.ent
βββ JATS-math1.ent
βββ JATS-mathml3-mathmlsetup1.ent
βββ JATS-mathml3-modules1.ent
βββ JATS-mathmlsetup1.ent
βββ JATS-modules1.ent
βββ JATS-nlmcitation1.ent
βββ JATS-notat1.ent
βββ JATS-oasis-namespace1a.ent
βββ JATS-oasis-namespace1.ent
βββ JATS-oasis-tablesetup1.ent
βββ JATS-para1.ent
βββ JATS-phrase1.ent
βββ JATS-references1.ent
βββ JATS-related-object1.ent
βββ JATS-section1.ent
βββ JATS-XHTMLtablesetup1.ent
βββ JATS-xmlspecchars1.ent
βββ mathml
βΒ Β βββ mmlalias.ent
βΒ Β βββ mmlextra.ent
βββ mathml2.dtd
βββ mathml2-qname-1.mod
βββ mathml3.dtd
βββ mathml3-qname1.mod
βββ oasis-exchange.ent
βββ Smallsamples
βΒ Β βββ journal.elementa.000011.xml
βΒ Β βββ journal.elementa.000012.xml
βΒ Β βββ journal.elementa.000017.xml
βΒ Β βββ samplesmall-pub1.xml # this is the test file
βββ xhtml-inlstyle-1.mod
βββ xhtml-table-1.mod
βββ xmlchars
βββ isogrk1.ent
βββ isogrk2.ent
βββ isogrk4.ent
Issue Analytics
- State:
- Created 2 years ago
- Comments:29 (10 by maintainers)
Top Results From Across the Web
Unable to work with modular DTD? - Eclipse/Lemminx
Problem. When editing a file with correct DOCTYPE and available DTD files I get message saying the DTD has 41 errors:
Read more >XML DTD validation error issue - Stack Overflow
The DTD was specified an external file content and that's when it was not validating. Just curious why it works when internal DTD...
Read more >W3C's Excessive DTD Traffic | W3C Blog
I just happen to be stacking together a new flavor of modular XHTML in the spirit of XHTML+RDFa for the backend of a...
Read more >Document.Open method is throwing error "Word encountered ...
Open method is throwing error "Word encountered an error processing the XML file DTD is prohibited" when trying to open a XHTML which...
Read more >XML Validation and Well-Formedness Check
XML validation can be done by checking documents against a schema. Oxygen XML Editor supports validation against XML Schema, DTD, Schematron, and Relax...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks for your feedbacj @lpanebr
Please note that you if you enable codelens, you should see someinformation about binding with DTD,XSD
Here a sample with binding with schemaLocation:
You can click on codelens to open the proper xsd.
ok. NOW Iβve REALLY gotten it to work (context aware suggestions) on Windows, with multiple catalogs on Sublime and VS Code!
UPDATE 1:
HereΒ΄s what I did to get it working on Windows, after installing the LemMinx package:
<nextCatalog>entries pointing to the DTD-libraries-provided catalog files on the same directory.\\slash notation.xml.validation.resolveExternalEntitiessetting.IMPORTANT 1:
IMPORTANT 2:
<nextCatalog>s files, the validation etc breaks for XML files that use that DTD but it all keeps working for XML files using the DTDs specified by the other<nextCatalog>s files.Below are the specific packages configurations that are currently working on Windows and provide context aware suggestions for elements, attributes and attribute values, both for Sublime Text (version 4) and VS Code.
Sublime
LSP-lemminx.sublime-settingsSublime
LSP.sublime-settingsThis setting is very convenient for it always opens the diagnostics panel on save, which either has a motivational message showing no errors, or lists each diagnostics allowing you to just double click to go to it in the document.VS Code
settings.jsonThe main
catalog.xmlhas only<nextCatalog>entries using relative path as pointed by @deathaxe .Catalog file
catalog.xmlDTD files used:
catalog.xmlfile and DTD libraries relative to<nextCatalog>files and folders. (see note below)Note:
catalog-jats-v1.xmlcatalog was problematic. It had axml:basedefined, which has to be removed.Conclusion As shown above, having a single catalog that properly references other catalogs using the
<nextCatalog>definition works as expected. So, if there really exists any bugs with multiple catalogs, I feel it must be related with either: