From e7db9f2f3ae0b57a23743ed1390531062e0471ce Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Tue, 5 Mar 2024 14:20:22 +0000
Subject: [PATCH] Add more pub-date checks
---
src/final-JATS-schematron.sch | 40 +-
src/final-JATS-schematron.xsl | 198 +--
src/final-package-JATS-schematron.sch | 40 +-
src/pre-JATS-schematron.sch | 40 +-
src/pre-JATS-schematron.xsl | 200 +--
src/schematron.sch | 68 +-
.../pub-date-child-test-1/fail.xml | 17 +
.../pub-date-child-test-1/pass.xml | 15 +
.../pub-date-child-test-1.sch | 1304 +++++++++++++++++
.../pub-date-tests/pub-date-test-1/fail.xml | 15 +
.../pub-date-tests/pub-date-test-1/pass.xml | 15 +
.../pub-date-test-1/pub-date-test-1.sch | 1304 +++++++++++++++++
.../pub-date-tests/pub-date-test-2/fail.xml | 15 +
.../pub-date-tests/pub-date-test-2/pass.xml | 15 +
.../pub-date-test-2/pub-date-test-2.sch | 1303 ++++++++++++++++
.../pub-date-tests/pub-date-test-3/fail.xml | 15 +
.../pub-date-tests/pub-date-test-3/pass.xml | 15 +
.../pub-date-test-3/pub-date-test-3.sch | 1303 ++++++++++++++++
.../pub-date-tests/pub-date-test-4/fail.xml | 15 +
.../pub-date-tests/pub-date-test-4/pass.xml | 15 +
.../pub-date-test-4/pub-date-test-4.sch | 1303 ++++++++++++++++
.../pub-date-tests/pub-date-test-5/fail.xml | 18 +
.../pub-date-tests/pub-date-test-5/pass.xml | 15 +
.../pub-date-test-5/pub-date-test-5.sch | 1303 ++++++++++++++++
.../pub-date-tests/pub-date-test-6/fail.xml | 15 +
.../pub-date-tests/pub-date-test-6/pass.xml | 15 +
.../pub-date-test-6/pub-date-test-6.sch | 1303 ++++++++++++++++
.../pub-date-tests/pub-date-test-7/fail.xml | 15 +
.../pub-date-tests/pub-date-test-7/pass.xml | 15 +
.../pub-date-test-7/pub-date-test-7.sch | 1303 ++++++++++++++++
test/xspec/schematron.sch | 52 +-
test/xspec/schematron.xspec | 148 +-
32 files changed, 11100 insertions(+), 357 deletions(-)
create mode 100644 test/tests/gen/pub-date-child-tests/pub-date-child-test-1/fail.xml
create mode 100644 test/tests/gen/pub-date-child-tests/pub-date-child-test-1/pass.xml
create mode 100644 test/tests/gen/pub-date-child-tests/pub-date-child-test-1/pub-date-child-test-1.sch
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-1/fail.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-1/pass.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-1/pub-date-test-1.sch
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-2/fail.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-2/pass.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-2/pub-date-test-2.sch
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-3/fail.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-3/pass.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-3/pub-date-test-3.sch
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-4/fail.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-4/pass.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-4/pub-date-test-4.sch
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-5/fail.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-5/pass.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-5/pub-date-test-5.sch
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-6/fail.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-6/pass.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-6/pub-date-test-6.sch
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-7/fail.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-7/pass.xml
create mode 100644 test/tests/gen/pub-date-tests/pub-date-test-7/pub-date-test-7.sch
diff --git a/src/final-JATS-schematron.sch b/src/final-JATS-schematron.sch
index 6e795ee28b..e2d12501fc 100644
--- a/src/final-JATS-schematron.sch
+++ b/src/final-JATS-schematron.sch
@@ -1915,31 +1915,33 @@
[final-year-element-citation-conformity] year in reference must contain content which matches the regular expression '^[1][6-9][0-9][0-9][a-z]?$|^[2]0[0-2][0-9][a-z]?$' - '' doesn't meet this requirement. If there is no year, and this cannot be determined yourself, please query this with the authors.
-
+
+
+ [pub-date-test-1] pub-date can only be a child of article-meta. This one is a child of
+
+ [pub-date-test-2] Only the following attributes are permitted on pub-date. This one has the following unallowed attributes: .
+
+ [pub-date-test-3] pub-date has the attribute publication-format, but the value is "". The only permitted value is "electronic".
+
+ [pub-date-test-4] pub-date has the attribute date-type, but the value is "". The only permitted value is "publication".
+
+ [pub-date-test-5] There can only be one pub-date in article-meta. But this pub-date has a preceding one.
+
+ [pub-date-test-6] pub-date must have the attribute publication-format.
+
+ [pub-date-test-7] pub-date must have the attribute date-type.
-
- [final-pub-date-test-1] pub-date must contain day in the format 00. Currently it is ''.
-
-
-
- [final-pub-date-test-2] pub-date must contain month in the format 00. Currently it is ''.
-
- [pub-date-test-3] pub-date must contain year in the format 0000. Currently it is ''.
-
-
+
+
+
+ [pub-date-child-test-1] is not allowed as a child of pub-date. The only permitted elements are .
+
+
[press-pub-date-check] The publication date for this article is in the future (), but the day of publication is not a Tuesday (for Press). Is that correct?
-
-
- [pub-date-test-4] date must contain year in the format 0000. Currently it is ''.
-
- [pub-date-test-5] pub-date[@pub-type='collection'] can only contain a year element.
-
- [pub-date-test-6] pub-date[@pub-type='collection'] year must be the same as pub-date[@publication-format='electronic'][@date-type='publication'] year.
-
[pub-history-parent] is only allowed to be captured as a child of article-meta. This one is a child of .
diff --git a/src/final-JATS-schematron.xsl b/src/final-JATS-schematron.xsl
index 6b35377ce5..39dd0b1b12 100644
--- a/src/final-JATS-schematron.xsl
+++ b/src/final-JATS-schematron.xsl
@@ -1904,8 +1904,8 @@
- pub-date-tests-1-pattern
- pub-date-tests-1-pattern
+ pub-date-tests-pattern
+ pub-date-tests-pattern
@@ -1913,8 +1913,8 @@
- press-pub-date-pattern
- press-pub-date-pattern
+ pub-date-child-tests-pattern
+ pub-date-child-tests-pattern
@@ -1922,8 +1922,8 @@
- pub-date-tests-2-pattern
- pub-date-tests-2-pattern
+ press-pub-date-pattern
+ press-pub-date-pattern
@@ -9572,59 +9572,111 @@
-
+
-
-
+
+
+
-
+
-
+
-
- final-pub-date-test-1
+
+ pub-date-test-1
error
- [final-pub-date-test-1] pub-date must contain day in the format 00. Currently it is '
-
- '.
+ [pub-date-test-1] pub-date can only be a child of article-meta. This one is a child of
+
+
+
+
+
+
+ pub-date-test-2
+ error
+
+
+
+ [pub-date-test-2] Only the following attributes are permitted on pub-date. This one has the following unallowed attributes:
+
+ .
+
+
+
+
+
+
+ pub-date-test-3
+ error
+
+
+
+ [pub-date-test-3] pub-date has the attribute publication-format, but the value is "
+
+ ". The only permitted value is "electronic".
+
+
+
+
+
+
+ pub-date-test-4
+ error
+
+
+
+ [pub-date-test-4] pub-date has the attribute date-type, but the value is "
+
+ ". The only permitted value is "publication".
+
+
+
+
+
+
+ pub-date-test-5
+ error
+
+
+
+ [pub-date-test-5] There can only be one pub-date in article-meta. But this pub-date has a preceding one.
+
+
+
-
+
-
- final-pub-date-test-2
+
+ pub-date-test-6
error
- [final-pub-date-test-2] pub-date must contain month in the format 00. Currently it is '
-
- '.
+ [pub-date-test-6] pub-date must have the attribute publication-format.
-
+
-
- pub-date-test-3
+
+ pub-date-test-7
error
- [pub-date-test-3] pub-date must contain year in the format 0000. Currently it is '
-
- '.
+ [pub-date-test-7] pub-date must have the attribute date-type.
@@ -9635,11 +9687,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ pub-date-child-test-1
+ error
+
+
+
+ [pub-date-child-test-1]
+
+ is not allowed as a child of pub-date. The only permitted elements are
+
+ .
+
+
+
+
+
+
+
+
+
+
-
+
@@ -9655,62 +9739,6 @@
), but the day of publication is not a Tuesday (for Press). Is that correct?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- pub-date-test-4
- error
-
-
-
- [pub-date-test-4] date must contain year in the format 0000. Currently it is '
-
- '.
-
-
-
-
-
-
-
- pub-date-test-5
- error
-
-
-
- [pub-date-test-5] pub-date[@pub-type='collection'] can only contain a year element.
-
-
-
-
-
-
-
-
- pub-date-test-6
- error
-
-
-
- [pub-date-test-6] pub-date[@pub-type='collection'] year must be the same as pub-date[@publication-format='electronic'][@date-type='publication'] year.
-
-
-
diff --git a/src/final-package-JATS-schematron.sch b/src/final-package-JATS-schematron.sch
index 90e1b778d2..8a1ed9ff7d 100644
--- a/src/final-package-JATS-schematron.sch
+++ b/src/final-package-JATS-schematron.sch
@@ -1921,31 +1921,33 @@
year in reference must contain content which matches the regular expression '^[1][6-9][0-9][0-9][a-z]?$|^[2]0[0-2][0-9][a-z]?$' - '' doesn't meet this requirement. If there is no year, and this cannot be determined yourself, please query this with the authors.
-
+
+
+ pub-date can only be a child of article-meta. This one is a child of
+
+ Only the following attributes are permitted on pub-date. This one has the following unallowed attributes: .
+
+ pub-date has the attribute publication-format, but the value is "". The only permitted value is "electronic".
+
+ pub-date has the attribute date-type, but the value is "". The only permitted value is "publication".
+
+ There can only be one pub-date in article-meta. But this pub-date has a preceding one.
+
+ pub-date must have the attribute publication-format.
+
+ pub-date must have the attribute date-type.
-
- pub-date must contain day in the format 00. Currently it is ''.
-
-
-
- pub-date must contain month in the format 00. Currently it is ''.
-
- pub-date must contain year in the format 0000. Currently it is ''.
-
-
+
+
+
+ is not allowed as a child of pub-date. The only permitted elements are .
+
+
The publication date for this article is in the future (), but the day of publication is not a Tuesday (for Press). Is that correct?
-
-
- date must contain year in the format 0000. Currently it is ''.
-
- pub-date[@pub-type='collection'] can only contain a year element.
-
- pub-date[@pub-type='collection'] year must be the same as pub-date[@publication-format='electronic'][@date-type='publication'] year.
-
is only allowed to be captured as a child of article-meta. This one is a child of .
diff --git a/src/pre-JATS-schematron.sch b/src/pre-JATS-schematron.sch
index dfd24f05ce..c96e17c18f 100644
--- a/src/pre-JATS-schematron.sch
+++ b/src/pre-JATS-schematron.sch
@@ -1860,31 +1860,33 @@
-
+
+
- [pre-pub-date-test-1] day is not present in pub-date.
-
-
-
- [pre-pub-date-test-2] month is not present in pub-date.
-
-
-
- [pub-date-test-3] pub-date must contain year in the format 0000. Currently it is ''.
+ [pub-date-test-1] pub-date can only be a child of article-meta. This one is a child of
+
+ [pub-date-test-2] Only the following attributes are permitted on pub-date. This one has the following unallowed attributes: .
+
+ [pub-date-test-3] pub-date has the attribute publication-format, but the value is "". The only permitted value is "electronic".
+
+ [pub-date-test-4] pub-date has the attribute date-type, but the value is "". The only permitted value is "publication".
+
+ [pub-date-test-5] There can only be one pub-date in article-meta. But this pub-date has a preceding one.
+
+ [pub-date-test-6] pub-date must have the attribute publication-format.
+
+ [pub-date-test-7] pub-date must have the attribute date-type.
-
+
+
+
+ [pub-date-child-test-1] is not allowed as a child of pub-date. The only permitted elements are .
+
+
[press-pub-date-check] The publication date for this article is in the future (), but the day of publication is not a Tuesday (for Press). Is that correct?
-
-
- [pub-date-test-4] date must contain year in the format 0000. Currently it is ''.
-
- [pub-date-test-5] pub-date[@pub-type='collection'] can only contain a year element.
-
- [pub-date-test-6] pub-date[@pub-type='collection'] year must be the same as pub-date[@publication-format='electronic'][@date-type='publication'] year.
-
[pub-history-parent] is only allowed to be captured as a child of article-meta. This one is a child of .
diff --git a/src/pre-JATS-schematron.xsl b/src/pre-JATS-schematron.xsl
index 5340d09dc3..1e7561700e 100644
--- a/src/pre-JATS-schematron.xsl
+++ b/src/pre-JATS-schematron.xsl
@@ -1847,8 +1847,8 @@
- pub-date-tests-1-pattern
- pub-date-tests-1-pattern
+ pub-date-tests-pattern
+ pub-date-tests-pattern
@@ -1856,8 +1856,8 @@
- press-pub-date-pattern
- press-pub-date-pattern
+ pub-date-child-tests-pattern
+ pub-date-child-tests-pattern
@@ -1865,8 +1865,8 @@
- pub-date-tests-2-pattern
- pub-date-tests-2-pattern
+ press-pub-date-pattern
+ press-pub-date-pattern
@@ -9463,55 +9463,111 @@
-
+
-
-
+
+
+
-
+
-
+
-
- pre-pub-date-test-1
- warning
+
+ pub-date-test-1
+ error
- [pre-pub-date-test-1] day is not present in pub-date.
+ [pub-date-test-1] pub-date can only be a child of article-meta. This one is a child of
+
+
+
-
+
+
+
+ pub-date-test-2
+ error
+
+
+
+ [pub-date-test-2] Only the following attributes are permitted on pub-date. This one has the following unallowed attributes:
+
+ .
+
+
+
+
+
+
+ pub-date-test-3
+ error
+
+
+
+ [pub-date-test-3] pub-date has the attribute publication-format, but the value is "
+
+ ". The only permitted value is "electronic".
+
+
+
+
+
+
+ pub-date-test-4
+ error
+
+
+
+ [pub-date-test-4] pub-date has the attribute date-type, but the value is "
+
+ ". The only permitted value is "publication".
+
+
+
+
+
+
+ pub-date-test-5
+ error
+
+
+
+ [pub-date-test-5] There can only be one pub-date in article-meta. But this pub-date has a preceding one.
+
+
+
+
-
+
-
- pre-pub-date-test-2
- warning
+
+ pub-date-test-6
+ error
- [pre-pub-date-test-2] month is not present in pub-date.
+ [pub-date-test-6] pub-date must have the attribute publication-format.
-
+
-
- pub-date-test-3
+
+ pub-date-test-7
error
- [pub-date-test-3] pub-date must contain year in the format 0000. Currently it is '
-
- '.
+ [pub-date-test-7] pub-date must have the attribute date-type.
@@ -9522,11 +9578,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ pub-date-child-test-1
+ error
+
+
+
+ [pub-date-child-test-1]
+
+ is not allowed as a child of pub-date. The only permitted elements are
+
+ .
+
+
+
+
+
+
+
+
+
+
-
+
@@ -9542,62 +9630,6 @@
), but the day of publication is not a Tuesday (for Press). Is that correct?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- pub-date-test-4
- error
-
-
-
- [pub-date-test-4] date must contain year in the format 0000. Currently it is '
-
- '.
-
-
-
-
-
-
-
- pub-date-test-5
- error
-
-
-
- [pub-date-test-5] pub-date[@pub-type='collection'] can only contain a year element.
-
-
-
-
-
-
-
-
- pub-date-test-6
- error
-
-
-
- [pub-date-test-6] pub-date[@pub-type='collection'] year must be the same as pub-date[@publication-format='electronic'][@date-type='publication'] year.
-
-
-
diff --git a/src/schematron.sch b/src/schematron.sch
index a865b81e2d..c9c4ae2e25 100644
--- a/src/schematron.sch
+++ b/src/schematron.sch
@@ -2531,29 +2531,47 @@
-
+
+
- day is not present in pub-date.
-
- pub-date must contain day in the format 00. Currently it is ''.
-
- month is not present in pub-date.
-
- pub-date can only be a child of article-meta. This one is a child of
+
+ pub-date must contain month in the format 00. Currently it is ''.
-
- Only the following attributes are permitted on pub-date. This one has the following unallowed attributes: .
+
+ pub-date has the attribute publication-format, but the value is "". The only permitted value is "electronic".
+
+ pub-date has the attribute date-type, but the value is "". The only permitted value is "publication".
+
+ There can only be one pub-date in article-meta. But this pub-date has a preceding one.
+
+ pub-date must contain year in the format 0000. Currently it is ''.
+ id="pub-date-test-6">pub-date must have the attribute publication-format.
+
+ pub-date must have the attribute date-type.
+
+
+
+
+ is not allowed as a child of pub-date. The only permitted elements are .
+
+
@@ -2564,22 +2582,6 @@
-
-
- date must contain year in the format 0000. Currently it is ''.
-
- pub-date[@pub-type='collection'] can only contain a year element.
-
- pub-date[@pub-type='collection'] year must be the same as pub-date[@publication-format='electronic'][@date-type='publication'] year.
-
-
-
+
+
+
+
+
+ Holocene
+ 22
+ 10
+ 2023
+ Hunting season
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-child-tests/pub-date-child-test-1/pass.xml b/test/tests/gen/pub-date-child-tests/pub-date-child-test-1/pass.xml
new file mode 100644
index 0000000000..5b227a0c4b
--- /dev/null
+++ b/test/tests/gen/pub-date-child-tests/pub-date-child-test-1/pass.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-child-tests/pub-date-child-test-1/pub-date-child-test-1.sch b/test/tests/gen/pub-date-child-tests/pub-date-child-test-1/pub-date-child-test-1.sch
new file mode 100644
index 0000000000..41a8c5817d
--- /dev/null
+++ b/test/tests/gen/pub-date-child-tests/pub-date-child-test-1/pub-date-child-test-1.sch
@@ -0,0 +1,1304 @@
+
+ eLife Schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cite
+
+
+
+
+
+
+
+
+
+
+ box
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ is not allowed as a child of pub-date. The only permitted elements are .
+
+
+
+
+ pub-date/* must be present.
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-1/fail.xml b/test/tests/gen/pub-date-tests/pub-date-test-1/fail.xml
new file mode 100644
index 0000000000..1f3a1ddcdd
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-1/fail.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-1/pass.xml b/test/tests/gen/pub-date-tests/pub-date-test-1/pass.xml
new file mode 100644
index 0000000000..145f90eea1
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-1/pass.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-1/pub-date-test-1.sch b/test/tests/gen/pub-date-tests/pub-date-test-1/pub-date-test-1.sch
new file mode 100644
index 0000000000..6536b1baaa
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-1/pub-date-test-1.sch
@@ -0,0 +1,1304 @@
+
+ eLife Schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cite
+
+
+
+
+
+
+
+
+
+
+ box
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pub-date can only be a child of article-meta. This one is a child of
+
+
+
+
+
+ pub-date must be present.
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-2/fail.xml b/test/tests/gen/pub-date-tests/pub-date-test-2/fail.xml
new file mode 100644
index 0000000000..901dbb0333
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-2/fail.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-2/pass.xml b/test/tests/gen/pub-date-tests/pub-date-test-2/pass.xml
new file mode 100644
index 0000000000..de09863ea2
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-2/pass.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-2/pub-date-test-2.sch b/test/tests/gen/pub-date-tests/pub-date-test-2/pub-date-test-2.sch
new file mode 100644
index 0000000000..fe1e4c4d31
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-2/pub-date-test-2.sch
@@ -0,0 +1,1303 @@
+
+ eLife Schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Only the following attributes are permitted on pub-date. This one has the following unallowed attributes: .
+
+
+
+
+ pub-date must be present.
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-3/fail.xml b/test/tests/gen/pub-date-tests/pub-date-test-3/fail.xml
new file mode 100644
index 0000000000..167976861a
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-3/fail.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-3/pass.xml b/test/tests/gen/pub-date-tests/pub-date-test-3/pass.xml
new file mode 100644
index 0000000000..7304dc50e2
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-3/pass.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-3/pub-date-test-3.sch b/test/tests/gen/pub-date-tests/pub-date-test-3/pub-date-test-3.sch
new file mode 100644
index 0000000000..4897a3a1d4
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-3/pub-date-test-3.sch
@@ -0,0 +1,1303 @@
+
+ eLife Schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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 cite
+
+
+
+
+
+
+
+
+
+
+ box
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pub-date has the attribute publication-format, but the value is "". The only permitted value is "electronic".
+
+
+
+
+ pub-date must be present.
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-4/fail.xml b/test/tests/gen/pub-date-tests/pub-date-test-4/fail.xml
new file mode 100644
index 0000000000..7532dec20f
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-4/fail.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-4/pass.xml b/test/tests/gen/pub-date-tests/pub-date-test-4/pass.xml
new file mode 100644
index 0000000000..11df0274c4
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-4/pass.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-4/pub-date-test-4.sch b/test/tests/gen/pub-date-tests/pub-date-test-4/pub-date-test-4.sch
new file mode 100644
index 0000000000..cf105aad02
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-4/pub-date-test-4.sch
@@ -0,0 +1,1303 @@
+
+ eLife Schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cite
+
+
+
+
+
+
+
+
+
+
+ box
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pub-date has the attribute date-type, but the value is "". The only permitted value is "publication".
+
+
+
+
+ pub-date must be present.
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-5/fail.xml b/test/tests/gen/pub-date-tests/pub-date-test-5/fail.xml
new file mode 100644
index 0000000000..50ec236ba7
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-5/fail.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+ What am I doing here??
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-5/pass.xml b/test/tests/gen/pub-date-tests/pub-date-test-5/pass.xml
new file mode 100644
index 0000000000..f3f26ab111
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-5/pass.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-5/pub-date-test-5.sch b/test/tests/gen/pub-date-tests/pub-date-test-5/pub-date-test-5.sch
new file mode 100644
index 0000000000..5233854af3
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-5/pub-date-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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cite
+
+
+
+
+
+
+
+
+
+
+ box
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ There can only be one pub-date in article-meta. But this pub-date has a preceding one.
+
+
+
+
+ pub-date must be present.
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-6/fail.xml b/test/tests/gen/pub-date-tests/pub-date-test-6/fail.xml
new file mode 100644
index 0000000000..8f99d9748b
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-6/fail.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-6/pass.xml b/test/tests/gen/pub-date-tests/pub-date-test-6/pass.xml
new file mode 100644
index 0000000000..2cc7d63033
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-6/pass.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-6/pub-date-test-6.sch b/test/tests/gen/pub-date-tests/pub-date-test-6/pub-date-test-6.sch
new file mode 100644
index 0000000000..5fb2f0e4e1
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-6/pub-date-test-6.sch
@@ -0,0 +1,1303 @@
+
+ eLife Schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cite
+
+
+
+
+
+
+
+
+
+
+ box
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pub-date must have the attribute publication-format.
+
+
+
+
+ pub-date must be present.
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-7/fail.xml b/test/tests/gen/pub-date-tests/pub-date-test-7/fail.xml
new file mode 100644
index 0000000000..02ed79f730
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-7/fail.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-7/pass.xml b/test/tests/gen/pub-date-tests/pub-date-test-7/pass.xml
new file mode 100644
index 0000000000..3ae95db7b8
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-7/pass.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ 22
+ 10
+ 2023
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/gen/pub-date-tests/pub-date-test-7/pub-date-test-7.sch b/test/tests/gen/pub-date-tests/pub-date-test-7/pub-date-test-7.sch
new file mode 100644
index 0000000000..e4c1cffeb9
--- /dev/null
+++ b/test/tests/gen/pub-date-tests/pub-date-test-7/pub-date-test-7.sch
@@ -0,0 +1,1303 @@
+
+ eLife Schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cite
+
+
+
+
+
+
+
+
+
+
+ box
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+
+
+
+
+
+
+
+ roman
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+ italic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ pub-date must have the attribute date-type.
+
+
+
+
+ pub-date must be present.
+
+
+
\ No newline at end of file
diff --git a/test/xspec/schematron.sch b/test/xspec/schematron.sch
index adcde6649c..d921b15de7 100644
--- a/test/xspec/schematron.sch
+++ b/test/xspec/schematron.sch
@@ -2122,21 +2122,36 @@
-
-
+
+
+
- day is not present in pub-date.
-
- pub-date must contain day in the format 00. Currently it is ''.
-
- month is not present in pub-date.
-
- pub-date must contain month in the format 00. Currently it is ''.
-
- pub-date must contain year in the format 0000. Currently it is ''.
+ pub-date can only be a child of article-meta. This one is a child of
+
+
+ Only the following attributes are permitted on pub-date. This one has the following unallowed attributes: .
+
+ pub-date has the attribute publication-format, but the value is "". The only permitted value is "electronic".
+
+ pub-date has the attribute date-type, but the value is "". The only permitted value is "publication".
+
+ There can only be one pub-date in article-meta. But this pub-date has a preceding one.
+
+ pub-date must have the attribute publication-format.
+
+ pub-date must have the attribute date-type.
+
+
+
+
+
+ is not allowed as a child of pub-date. The only permitted elements are .
+
+
+
@@ -2145,17 +2160,6 @@
-
-
-
- date must contain year in the format 0000. Currently it is ''.
-
- pub-date[@pub-type='collection'] can only contain a year element.
-
- pub-date[@pub-type='collection'] year must be the same as pub-date[@publication-format='electronic'][@date-type='publication'] year.
-
-
-
@@ -9573,9 +9577,9 @@
month[not(parent::string-date)] must be present.
year[ancestor::article-meta] must be present.
year[ancestor::element-citation] must be present.
- pub-date[not(@pub-type='collection')] must be present.
+ pub-date must be present.
+ pub-date/* must be present.
pub-date[not(@pub-type='collection') and day and month and year][concat(year[1],'-',month[1],'-',day[1]) gt format-date(current-date(), '[Y0001]-[M01]-[D01]')] must be present.
- pub-date[@pub-type='collection'] must be present.
pub-history must be present.
event must be present.
event[date[@date-type='reviewed-preprint']/@iso-8601-date != ''] must be present.
diff --git a/test/xspec/schematron.xspec b/test/xspec/schematron.xspec
index de7af5a8db..c40eb015ce 100644
--- a/test/xspec/schematron.xspec
+++ b/test/xspec/schematron.xspec
@@ -1954,100 +1954,100 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+