From fb61051cac4b39131221031bcc431e222d5dd2d8 Mon Sep 17 00:00:00 2001 From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com> Date: Tue, 16 Jan 2024 08:28:07 +0000 Subject: [PATCH] Include pre and final versions of clintrial-conformance-9 --- src/final-JATS-schematron.sch | 5 +- src/final-JATS-schematron.xsl | 4 +- src/final-package-JATS-schematron.sch | 5 +- src/pre-JATS-schematron.sch | 5 +- src/pre-JATS-schematron.xsl | 8 +- src/schematron.sch | 8 +- .../final-clintrial-conformance-9/fail.xml | 29 + .../final-clintrial-conformance-9.sch | 1303 +++++++++++++++++ .../final-clintrial-conformance-9/pass.xml | 29 + .../pre-clintrial-conformance-9/fail.xml | 29 + .../pre-clintrial-conformance-9/pass.xml | 29 + .../pre-clintrial-conformance-9.sch | 1303 +++++++++++++++++ test/xspec/schematron.sch | 5 +- test/xspec/schematron.xspec | 22 +- 14 files changed, 2767 insertions(+), 17 deletions(-) create mode 100644 test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/fail.xml create mode 100644 test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/final-clintrial-conformance-9.sch create mode 100644 test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/pass.xml create mode 100644 test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/fail.xml create mode 100644 test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/pass.xml create mode 100644 test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/pre-clintrial-conformance-9.sch diff --git a/src/final-JATS-schematron.sch b/src/final-JATS-schematron.sch index 039d94528a..d3259bd2d2 100644 --- a/src/final-JATS-schematron.sch +++ b/src/final-JATS-schematron.sch @@ -2132,7 +2132,10 @@ [clintrial-conformance-8] must have an @id in the format 'abs1'. does not conform to this convention. - [clintrial-conformance-9] A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. + + + + [final-clintrial-conformance-9] A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. [struct-abs-title-1] A title in a structured abstract cannot contain a child element. It should only contain text. This title with the content '' has the following element(s): . diff --git a/src/final-JATS-schematron.xsl b/src/final-JATS-schematron.xsl index a12948d1c5..e99ccdc924 100644 --- a/src/final-JATS-schematron.xsl +++ b/src/final-JATS-schematron.xsl @@ -11018,13 +11018,13 @@ - clintrial-conformance-9 + final-clintrial-conformance-9 https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5 error - [clintrial-conformance-9] A section with the title + [final-clintrial-conformance-9] A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. diff --git a/src/final-package-JATS-schematron.sch b/src/final-package-JATS-schematron.sch index bf5d1a2423..e5b4f75d11 100644 --- a/src/final-package-JATS-schematron.sch +++ b/src/final-package-JATS-schematron.sch @@ -2138,7 +2138,10 @@ must have an @id in the format 'abs1'. does not conform to this convention. - A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. + + + + A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. A title in a structured abstract cannot contain a child element. It should only contain text. This title with the content '' has the following element(s): . diff --git a/src/pre-JATS-schematron.sch b/src/pre-JATS-schematron.sch index fa44670316..4f1edc9801 100644 --- a/src/pre-JATS-schematron.sch +++ b/src/pre-JATS-schematron.sch @@ -2077,7 +2077,10 @@ [clintrial-conformance-8] must have an @id in the format 'abs1'. does not conform to this convention. - [clintrial-conformance-9] A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. + + [pre-clintrial-conformance-9] A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. + + [struct-abs-title-1] A title in a structured abstract cannot contain a child element. It should only contain text. This title with the content '' has the following element(s): . diff --git a/src/pre-JATS-schematron.xsl b/src/pre-JATS-schematron.xsl index 5db07f02b9..98da489583 100644 --- a/src/pre-JATS-schematron.xsl +++ b/src/pre-JATS-schematron.xsl @@ -10902,16 +10902,16 @@ - + - clintrial-conformance-9 + pre-clintrial-conformance-9 https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5 - error + warning - [clintrial-conformance-9] A section with the title + [pre-clintrial-conformance-9] A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. diff --git a/src/schematron.sch b/src/schematron.sch index 0af22ceccb..eeab361b4f 100644 --- a/src/schematron.sch +++ b/src/schematron.sch @@ -2984,10 +2984,16 @@ role="error" id="clintrial-conformance-8"> must have an @id in the format 'abs1'. does not conform to this convention. + + A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. + A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. + id="final-clintrial-conformance-9">A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. diff --git a/test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/fail.xml b/test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/fail.xml new file mode 100644 index 0000000000..2ce40990d9 --- /dev/null +++ b/test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/fail.xml @@ -0,0 +1,29 @@ + + + +
+ + + Background: + + + Methods: + + + Results: + + + Conclusions: + + + Funding: + + + Clinical trial number: +

https://clinicaltrials.gov/ (CTN1234567890).

+
+
+
+
\ No newline at end of file diff --git a/test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/final-clintrial-conformance-9.sch b/test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/final-clintrial-conformance-9.sch new file mode 100644 index 0000000000..bb52f08133 --- /dev/null +++ b/test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/final-clintrial-conformance-9.sch @@ -0,0 +1,1303 @@ + + eLife Schematron + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + cite + + + + + + + + + + + box + + + + + + + + + + + + + + + + + + + + + roman + + + + + + + + + + + + + + roman + + + + + + + italic + + + + + + + + + + + + + + italic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. + + + + + abstract[not(@abstract-type)]/sec must be present. + + + \ No newline at end of file diff --git a/test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/pass.xml b/test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/pass.xml new file mode 100644 index 0000000000..06169dea0c --- /dev/null +++ b/test/tests/gen/abstract-sec-titles/final-clintrial-conformance-9/pass.xml @@ -0,0 +1,29 @@ + + + +
+ + + Background: + + + Methods: + + + Results: + + + Conclusions: + + + Funding: + + + Clinical trial number: +

CTN1234567890.

+
+
+
+
\ No newline at end of file diff --git a/test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/fail.xml b/test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/fail.xml new file mode 100644 index 0000000000..4b6da7a84a --- /dev/null +++ b/test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/fail.xml @@ -0,0 +1,29 @@ + + + +
+ + + Background: + + + Methods: + + + Results: + + + Conclusions: + + + Funding: + + + Clinical trial number: +

https://clinicaltrials.gov/ (CTN1234567890).

+
+
+
+
\ No newline at end of file diff --git a/test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/pass.xml b/test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/pass.xml new file mode 100644 index 0000000000..5397769d6c --- /dev/null +++ b/test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/pass.xml @@ -0,0 +1,29 @@ + + + +
+ + + Background: + + + Methods: + + + Results: + + + Conclusions: + + + Funding: + + + Clinical trial number: +

CTN1234567890.

+
+
+
+
diff --git a/test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/pre-clintrial-conformance-9.sch b/test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/pre-clintrial-conformance-9.sch new file mode 100644 index 0000000000..fcc3f67fbb --- /dev/null +++ b/test/tests/gen/abstract-sec-titles/pre-clintrial-conformance-9/pre-clintrial-conformance-9.sch @@ -0,0 +1,1303 @@ + + eLife Schematron + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + cite + + + + + + + + + + + box + + + + + + + + + + + + + + + + + + + + + roman + + + + + + + + + + + + + + roman + + + + + + + italic + + + + + + + + + + + + + + italic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. + + + + + abstract[not(@abstract-type)]/sec must be present. + + + \ No newline at end of file diff --git a/test/xspec/schematron.sch b/test/xspec/schematron.sch index 48a58ecaff..02d96e6f82 100644 --- a/test/xspec/schematron.sch +++ b/test/xspec/schematron.sch @@ -2433,7 +2433,10 @@ must have an @id in the format 'abs1'. does not conform to this convention. - A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. + + A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not. + + A section with the title in the abstract must have at least one related-object element that contains all the information related to the clinical trial. This one does not.
diff --git a/test/xspec/schematron.xspec b/test/xspec/schematron.xspec index 3789e99ae7..1265ce7d46 100644 --- a/test/xspec/schematron.xspec +++ b/test/xspec/schematron.xspec @@ -2757,14 +2757,24 @@ - - - + + + - - - + + + + + + + + + + + + +