git.iko.soy/typeable/pandoc
on master help sign in
Update JATS dtd (#6020)

The current DTD for the JATS writer template is for Journal Publishing (JATS-journalpublishing1.dtd), which does not permit ext-link as a valid child (https://jats.nlm.nih.gov/publishing/tag-library/1.1/element/publisher-name.html). This update modifies the default output template to be the less restrictive JATS archiving and interchange DTD which systems like PubMed use internally to represent their articles.

commit5847624124b4c91ae0a64b76405a36ad4f0dc3c4 authorArfon Smith <arfon@users.noreply.github.com> dateTue 31 Dec 2019, 01:18 (7 years ago) parent82f4459
3 files changed+10−10
data/templates/default.jats+4−4 test/jats-reader.xml+3−3 test/writer.jats+3−3
data/templates/default.jats+4−4
@@ -2,12 +2,12 @@
22$if(xml-stylesheet)$
33<?xml-stylesheet type="text/xsl" href="$xml-stylesheet$"?>
44$endif$
5−<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN"
6− "JATS-journalpublishing1.dtd">
5+<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN"
6+ "JATS-archivearticle1.dtd">
77$if(article.type)$
8−<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.1" article-type="$article.type$">
8+<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="$article.type$">
99$else$
10−<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.1" article-type="other">
10+<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other">
1111$endif$
1212<front>
1313<journal-meta>
test/jats-reader.xml+3−3
@@ -1,7 +1,7 @@
11<?xml version="1.0" encoding="utf-8" ?>
2−<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.0 20120330//EN"
3− "JATS-journalpublishing1.dtd">
4−<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.0" article-type="other">
2+<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN"
3+ "JATS-archivearticle1.dtd">
4+<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other">
55<front>
66<journal-meta>
77<journal-title-group>
test/writer.jats+3−3
@@ -1,7 +1,7 @@
11<?xml version="1.0" encoding="utf-8" ?>
2−<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN"
3− "JATS-journalpublishing1.dtd">
4−<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.1" article-type="other">
2+<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN"
3+ "JATS-archivearticle1.dtd">
4+<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other">
55<front>
66<journal-meta>
77<journal-title-group>