Home | Public Area

Comment #00601 - Please add the @xsi:noNamespaceSchemaLocation attribute - z39.96-2012.pdf

Comment 601
Addressed (Unresolved)
ANSI/NISO Z39.96-2012, JATS: Journal Article Tag Suite (version 1.0) (Revision 0)
Comment Submitted by
Chris Maloney
2015-09-25 14:14:40

Please consider adding the attribute @xsi:noNamespaceSchemaLocation to all of the JATS DTDs, for

the "article" element as:



    xsi:noNamespaceSchemaLocation  CDATA  #IMPLIED



As I mentioned in my question to the jats-list this will allow documents that call out JATS XSD via this attribute to be considered valid according to the DTD. It is a problem that right now, the following document:



<!DOCTYPE article

  PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.0 20120330//EN"

  "http://jats.nlm.nih.gov/publishing/1.0/JATS-journalpublishing1.dtd">

<article dtd-version="1.0"

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  xsi:noNamespaceSchemaLocation=

    "http://jats.nlm.nih.gov/publishing/1.0/xsd/JATS-journalpublishing1.xsd?>

...

</article>



would be considered *valid* according to the XSD, but *invalid* according to the DTD. XSD and DTD are supposed to be alternative forms of a schema that defines what is a valid document, and should be interchangeable.



On the list, Debbie responded, mentioning that one of the XSD authors was opposed, in principle, to documents self-identifying their schemas. But, I think, that is really a separate argument. Regardless of whether or not a document should or should not self-identify, the meaning of what is a "valid" document should be consistent.



I believe this change would be backwards-compatible, since any document that is valid now (according to the DTD) would not have this attribute, and my proposed change is to make this an optional attribute.



Note that the namespace prefix must be "xsi", not "xs" (as is sometimes used) or anything else, because the "xmlns:xsi" attribute is already defined as a FIXED value in the existing DTDs.

Submitter Proposed Solution
Ms. B. Tommie Usdin
2017-08-30 13:15:03

The ?attribute? @xsi:noNamespaceSchemaLocation will be added to the document element in each of the JATS DTDs as:

   xsi:noNamespaceSchemaLocation CDATA #IMPLIED