Two JATS DTD in XML Catalog

This should cover W3C XML Schema, Relax NG and DTD related problems.
Posts: 4

Two JATS DTD in XML Catalog

Thu Mar 03, 2016 2:36 am

I'm having trouble with what appears to be conflicting DTD catalogs when validating XML files.

I have two DTDS in the JATS family specified in the XML Catalog of the Preferences tab.


When validating a file using the second DTD (Archiving) I get an error that the system is looking for a file in the first DTD path (JATS-Publishing-1-1d1-MathML2-DTD

Error message:
FileNotFoundException-C:\JATS-Publishing-1-1d1-MathML2-DTD\JATS-archivearticle1.dtd (The system cannot find the file specified)

As you see, it's looking in the Publishing version of the DTD, for some reason, instead of the Archiving DTD.

If I remove the Publishing XML catalog (first path) the file validates perfectly fine. Can the two not co-exist?
Posts: 2471

Re: Two JATS DTD in XML Catalog

Thu Mar 03, 2016 12:33 pm


I've seen the two JATS XML catalogs and for whatever reason they are identical even though some DTDs are missing from one distribution and other DTDs are missing from the other distribution.
The only reasonable solution I see is to merge the two folders into one (files of the same name are identical). You can use the Diff Directories tool from Oxygen, compare the two folders, copy all the missing files to one of the folders and use the XML catalog from that.

Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
Posts: 4

Re: Two JATS DTD in XML Catalog

Fri Mar 04, 2016 8:55 pm

Thanks Adrian.

Copying the missing Archive files over to the Publishing directory worked.


Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 3 guests