Skip to content

Commit

Permalink
Include pre and final versions of clintrial-conformance-9
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-atherden committed Jan 16, 2024
1 parent 6abc757 commit fb61051
Show file tree
Hide file tree
Showing 14 changed files with 2,767 additions and 17 deletions.
5 changes: 4 additions & 1 deletion src/final-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,10 @@

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-8" test="matches(@id,'^abs[1-9]$')" role="error" id="clintrial-conformance-8">[clintrial-conformance-8] <name/> must have an @id in the format 'abs1'. <value-of select="@id"/> does not conform to this convention.</assert>

<report see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5" test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])" role="error" id="clintrial-conformance-9">[clintrial-conformance-9] A section with the title <value-of select="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.</report>
<!-- temporarily doing pre and final versions -->


<report see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5" test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])" role="error" id="final-clintrial-conformance-9">[final-clintrial-conformance-9] A section with the title <value-of select="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.</report>
</rule></pattern><pattern id="abstract-sec-title-content-pattern"><rule context="abstract[not(@abstract-type)]/sec/title" id="abstract-sec-title-content">

<report test="*" role="error" id="struct-abs-title-1">[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 '<value-of select="."/>' has the following element(s): <value-of select="string-join(*/name(),'; ')"/>.</report>
Expand Down
4 changes: 2 additions & 2 deletions src/final-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11018,13 +11018,13 @@
<!--REPORT error-->
<xsl:if test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])">
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])">
<xsl:attribute name="id">clintrial-conformance-9</xsl:attribute>
<xsl:attribute name="id">final-clintrial-conformance-9</xsl:attribute>
<xsl:attribute name="see">https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5</xsl:attribute>
<xsl:attribute name="role">error</xsl:attribute>
<xsl:attribute name="location">
<xsl:apply-templates select="." mode="schematron-select-full-path"/>
</xsl:attribute>
<svrl:text>[clintrial-conformance-9] A section with the title <xsl:text/>
<svrl:text>[final-clintrial-conformance-9] A section with the title <xsl:text/>
<xsl:value-of select="title"/>
<xsl:text/> 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.</svrl:text>
</svrl:successful-report>
Expand Down
5 changes: 4 additions & 1 deletion src/final-package-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,10 @@

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-8" test="matches(@id,'^abs[1-9]$')" role="error" id="clintrial-conformance-8"><name/> must have an @id in the format 'abs1'. <value-of select="@id"/> does not conform to this convention.</assert>

<report see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5" test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])" role="error" id="clintrial-conformance-9">A section with the title <value-of select="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.</report>
<!-- temporarily doing pre and final versions -->


<report see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5" test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])" role="error" id="final-clintrial-conformance-9">A section with the title <value-of select="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.</report>
</rule></pattern><pattern id="abstract-sec-title-content-pattern"><rule context="abstract[not(@abstract-type)]/sec/title" id="abstract-sec-title-content">

<report test="*" role="error" id="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 '<value-of select="."/>' has the following element(s): <value-of select="string-join(*/name(),'; ')"/>.</report>
Expand Down
5 changes: 4 additions & 1 deletion src/pre-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,10 @@

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-8" test="matches(@id,'^abs[1-9]$')" role="error" id="clintrial-conformance-8">[clintrial-conformance-8] <name/> must have an @id in the format 'abs1'. <value-of select="@id"/> does not conform to this convention.</assert>

<report see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5" test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])" role="error" id="clintrial-conformance-9">[clintrial-conformance-9] A section with the title <value-of select="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.</report>
<!-- temporarily doing pre and final versions -->
<report see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5" test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])" role="warning" id="pre-clintrial-conformance-9">[pre-clintrial-conformance-9] A section with the title <value-of select="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.</report>


</rule></pattern><pattern id="abstract-sec-title-content-pattern"><rule context="abstract[not(@abstract-type)]/sec/title" id="abstract-sec-title-content">

<report test="*" role="error" id="struct-abs-title-1">[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 '<value-of select="."/>' has the following element(s): <value-of select="string-join(*/name(),'; ')"/>.</report>
Expand Down
8 changes: 4 additions & 4 deletions src/pre-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10902,16 +10902,16 @@
</xsl:otherwise>
</xsl:choose>

<!--REPORT error-->
<!--REPORT warning-->
<xsl:if test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])">
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])">
<xsl:attribute name="id">clintrial-conformance-9</xsl:attribute>
<xsl:attribute name="id">pre-clintrial-conformance-9</xsl:attribute>
<xsl:attribute name="see">https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5</xsl:attribute>
<xsl:attribute name="role">error</xsl:attribute>
<xsl:attribute name="role">warning</xsl:attribute>
<xsl:attribute name="location">
<xsl:apply-templates select="." mode="schematron-select-full-path"/>
</xsl:attribute>
<svrl:text>[clintrial-conformance-9] A section with the title <xsl:text/>
<svrl:text>[pre-clintrial-conformance-9] A section with the title <xsl:text/>
<xsl:value-of select="title"/>
<xsl:text/> 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.</svrl:text>
</svrl:successful-report>
Expand Down
8 changes: 7 additions & 1 deletion src/schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2984,10 +2984,16 @@
role="error"
id="clintrial-conformance-8"><name/> must have an @id in the format 'abs1'. <value-of select="@id"/> does not conform to this convention.</assert>

<!-- temporarily doing pre and final versions -->
<report see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5"
test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])"
role="warning"
id="pre-clintrial-conformance-9">A section with the title <value-of select="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.</report>

<report see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-conformance-5"
test="starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])"
role="error"
id="clintrial-conformance-9">A section with the title <value-of select="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.</report>
id="final-clintrial-conformance-9">A section with the title <value-of select="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.</report>
</rule>

<rule context="abstract[not(@abstract-type)]/sec/title" id="abstract-sec-title-content">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?oxygen SCHSchema="final-clintrial-conformance-9.sch"?>
<!--Context: abstract[not(@abstract-type)]/sec
Test: report starts-with(lower-case(title),'clinical trial number') and not(descendant::related-object[@document-id-type='clinical-trial-number'])
Message: 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. -->
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0/">
<article>
<abstract>
<sec id="abs1">
<title>Background:</title>
</sec>
<sec id="abs2">
<title>Methods:</title>
</sec>
<sec id="abs3">
<title>Results:</title>
</sec>
<sec id="abs4">
<title>Conclusions:</title>
</sec>
<sec id="abs5">
<title>Funding:</title>
</sec>
<sec id="abs6">
<title>Clinical trial number:</title>
<p><ext-link ext-link-type="uri" xlink:href="https://clinicaltrials.gov/">https://clinicaltrials.gov/</ext-link> (CTN1234567890).</p>
</sec>
</abstract>
</article>
</root>
Loading

0 comments on commit fb61051

Please sign in to comment.