Closed Klortho closed 8 years ago
I'd guess that most of them are doing it anyway
I don't think they are, actually. PMC gets very little data with the attribute explicitly stated.
Presumably the intention is that the value is read from the DTD rather than the XML file, so there's no reason to add it to the XML.
However, if we're encouraging re-use in environments that don't use the DTD, it might make sense to require it. It would have to be accurate, though…
FWIW, PeerJ's articles do have this attribute set.
I think it's a good best practice. What if we made it a warning if the attribute is not present?
It came up in the call just now, that we can use @dtd-version in the Schematron, to determine which license rules to apply (see #50). That would simplify things quite a bit for us. And using the test that "what's good for us is good for reuse", suggests that we should require it.
There seemed to be widespread support to require it on the call. Can anyone think of any compelling reason not to require it?
On Thu, Oct 15, 2015 at 3:03 PM, Chris Maloney notifications@github.com wrote:
It came up in the call just now, that we can use @dtd-version in the Schematron, to determine which license rules to apply (see #50 https://github.com/JATS4R/JATS4R-Participant-Hub/issues/50). That would simplify things quite a bit for us. And using the test that "what's good for us is good for reuse", suggests that we should require it.
— Reply to this email directly or view it on GitHub https://github.com/JATS4R/JATS4R-Participant-Hub/issues/113#issuecomment-148395893 .
This is a warning if it is not there.
See http://jatspan.org/niso/publishing-1.1d3/#p=attr-dtd-version.
This attribute is defined as "FIXED", which means:
It's a nice attribute, because it enables consumers (bots) to determine the version of the schema that the document conforms to, without having to read the doctype declaration or any processing instructions. OTOH, making this attribute required by JATS4R would put an extra burden on the content providers. Then again, it's best practice, and I'd guess that most of them are doing it anyway.