Skip to content

Commit

Permalink
RP/VOR - tweak clintrial-related-object-8
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-atherden committed Feb 17, 2025
1 parent dfcf35d commit 1e3ed51
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/final-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2256,7 +2256,7 @@

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-7" test="@xlink:href[not(matches(.,'\p{Zs}'))]" role="error" id="clintrial-related-object-7">[clintrial-related-object-7] <name/> must have an @xlink:href with a value that does not contain a space character.</assert>

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8" test="contains(.,@document-id/string())" role="warning" id="clintrial-related-object-8">[clintrial-related-object-8] <name/> has an @document-id '<value-of select="@document-id"/>'. But this is not in the text, which is likely incorrect - <value-of select="."/>.</assert>
<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8" test="@document-id = ." role="warning" id="clintrial-related-object-8">[clintrial-related-object-8] <name/> has an @document-id '<value-of select="@document-id"/>'. But this is not the text of the related-object, which is likely incorrect - <value-of select="."/>.</assert>

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

Expand Down
6 changes: 3 additions & 3 deletions src/final-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11110,9 +11110,9 @@
</xsl:choose>
<!--ASSERT warning-->
<xsl:choose>
<xsl:when test="contains(.,@document-id/string())"/>
<xsl:when test="@document-id = ."/>
<xsl:otherwise>
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="contains(.,@document-id/string())">
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="@document-id = .">
<xsl:attribute name="id">clintrial-related-object-8</xsl:attribute>
<xsl:attribute name="see">https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8</xsl:attribute>
<xsl:attribute name="role">warning</xsl:attribute>
Expand All @@ -11123,7 +11123,7 @@
<xsl:value-of select="name(.)"/>
<xsl:text/> has an @document-id '<xsl:text/>
<xsl:value-of select="@document-id"/>
<xsl:text/>'. But this is not in the text, which is likely incorrect - <xsl:text/>
<xsl:text/>'. But this is not the text of the related-object, which is likely incorrect - <xsl:text/>
<xsl:value-of select="."/>
<xsl:text/>.</svrl:text>
</svrl:failed-assert>
Expand Down
2 changes: 1 addition & 1 deletion src/final-package-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2262,7 +2262,7 @@

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-7" test="@xlink:href[not(matches(.,'\p{Zs}'))]" role="error" id="clintrial-related-object-7"><name/> must have an @xlink:href with a value that does not contain a space character.</assert>

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8" test="contains(.,@document-id/string())" role="warning" id="clintrial-related-object-8"><name/> has an @document-id '<value-of select="@document-id"/>'. But this is not in the text, which is likely incorrect - <value-of select="."/>.</assert>
<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8" test="@document-id = ." role="warning" id="clintrial-related-object-8"><name/> has an @document-id '<value-of select="@document-id"/>'. But this is not the text of the related-object, which is likely incorrect - <value-of select="."/>.</assert>

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

Expand Down
2 changes: 1 addition & 1 deletion src/pre-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2201,7 +2201,7 @@

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-7" test="@xlink:href[not(matches(.,'\p{Zs}'))]" role="error" id="clintrial-related-object-7">[clintrial-related-object-7] <name/> must have an @xlink:href with a value that does not contain a space character.</assert>

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8" test="contains(.,@document-id/string())" role="warning" id="clintrial-related-object-8">[clintrial-related-object-8] <name/> has an @document-id '<value-of select="@document-id"/>'. But this is not in the text, which is likely incorrect - <value-of select="."/>.</assert>
<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8" test="@document-id = ." role="warning" id="clintrial-related-object-8">[clintrial-related-object-8] <name/> has an @document-id '<value-of select="@document-id"/>'. But this is not the text of the related-object, which is likely incorrect - <value-of select="."/>.</assert>

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

Expand Down
6 changes: 3 additions & 3 deletions src/pre-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10957,9 +10957,9 @@
</xsl:choose>
<!--ASSERT warning-->
<xsl:choose>
<xsl:when test="contains(.,@document-id/string())"/>
<xsl:when test="@document-id = ."/>
<xsl:otherwise>
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="contains(.,@document-id/string())">
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="@document-id = .">
<xsl:attribute name="id">clintrial-related-object-8</xsl:attribute>
<xsl:attribute name="see">https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8</xsl:attribute>
<xsl:attribute name="role">warning</xsl:attribute>
Expand All @@ -10970,7 +10970,7 @@
<xsl:value-of select="name(.)"/>
<xsl:text/> has an @document-id '<xsl:text/>
<xsl:value-of select="@document-id"/>
<xsl:text/>'. But this is not in the text, which is likely incorrect - <xsl:text/>
<xsl:text/>'. But this is not the text of the related-object, which is likely incorrect - <xsl:text/>
<xsl:value-of select="."/>
<xsl:text/>.</svrl:text>
</svrl:failed-assert>
Expand Down
4 changes: 2 additions & 2 deletions src/rp-schematron-base.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2026,9 +2026,9 @@
role="error"
id="clintrial-related-object-7"><name/> must have an @xlink:href with a value that does not contain a space character.</assert>

<assert test="contains(.,@document-id/string())"
<assert test="@document-id = ."
role="warning"
id="clintrial-related-object-8"><name/> has an @document-id '<value-of select="@document-id"/>'. But this is not in the text, which is likely incorrect - <value-of select="."/>.</assert>
id="clintrial-related-object-8"><name/> has an @document-id '<value-of select="@document-id"/>'. But this is not the text of the related-object, which is likely incorrect - <value-of select="."/>.</assert>

<assert test="some $x in document($registries)/registries/registry satisfies ($x/subtitle/string()=@source-id)"
role="warning"
Expand Down
2 changes: 1 addition & 1 deletion src/rp-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@

<assert test="@xlink:href[not(matches(.,'\p{Zs}'))]" role="error" id="clintrial-related-object-7">[clintrial-related-object-7] <name/> must have an @xlink:href with a value that does not contain a space character.</assert>

<assert test="contains(.,@document-id/string())" role="warning" id="clintrial-related-object-8">[clintrial-related-object-8] <name/> has an @document-id '<value-of select="@document-id"/>'. But this is not in the text, which is likely incorrect - <value-of select="."/>.</assert>
<assert test="@document-id = ." role="warning" id="clintrial-related-object-8">[clintrial-related-object-8] <name/> has an @document-id '<value-of select="@document-id"/>'. But this is not the text of the related-object, which is likely incorrect - <value-of select="."/>.</assert>

<assert test="some $x in document($registries)/registries/registry satisfies ($x/subtitle/string()=@source-id)" role="warning" id="clintrial-related-object-11">[clintrial-related-object-11] <name/> @source-id value should almost always be one of the subtitles of the Crossref clinical trial registries. "<value-of select="@source-id"/>" is not one of the following <value-of select="string-join(for $x in document($registries)/registries/registry return concat('&quot;',$x/subtitle/string(),'&quot; (',$x/doi/string(),')'),', ')"/>. Is that correct?</assert>

Expand Down
6 changes: 3 additions & 3 deletions src/rp-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -7645,9 +7645,9 @@
</xsl:choose>
<!--ASSERT warning-->
<xsl:choose>
<xsl:when test="contains(.,@document-id/string())"/>
<xsl:when test="@document-id = ."/>
<xsl:otherwise>
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="contains(.,@document-id/string())">
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="@document-id = .">
<xsl:attribute name="id">clintrial-related-object-8</xsl:attribute>
<xsl:attribute name="role">warning</xsl:attribute>
<xsl:attribute name="location">
Expand All @@ -7657,7 +7657,7 @@
<xsl:value-of select="name(.)"/>
<xsl:text/> has an @document-id '<xsl:text/>
<xsl:value-of select="@document-id"/>
<xsl:text/>'. But this is not in the text, which is likely incorrect - <xsl:text/>
<xsl:text/>'. But this is not the text of the related-object, which is likely incorrect - <xsl:text/>
<xsl:value-of select="."/>
<xsl:text/>.</svrl:text>
</svrl:failed-assert>
Expand Down
4 changes: 2 additions & 2 deletions src/schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -3174,9 +3174,9 @@
id="clintrial-related-object-7"><name/> must have an @xlink:href with a value that does not contain a space character.</assert>

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8"
test="contains(.,@document-id/string())"
test="@document-id = ."
role="warning"
id="clintrial-related-object-8"><name/> has an @document-id '<value-of select="@document-id"/>'. But this is not in the text, which is likely incorrect - <value-of select="."/>.</assert>
id="clintrial-related-object-8"><name/> has an @document-id '<value-of select="@document-id"/>'. But this is not the text of the related-object, which is likely incorrect - <value-of select="."/>.</assert>

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-9"
test="matches(@id,'^RO[1-9]')"
Expand Down
4 changes: 2 additions & 2 deletions test/xspec/rp-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -1446,8 +1446,8 @@
<assert test="@xlink:href[not(matches(.,'\p{Zs}'))]" role="error" id="clintrial-related-object-7">
<name/> must have an @xlink:href with a value that does not contain a space character.</assert>

<assert test="contains(.,@document-id/string())" role="warning" id="clintrial-related-object-8">
<name/> has an @document-id '<value-of select="@document-id"/>'. But this is not in the text, which is likely incorrect - <value-of select="."/>.</assert>
<assert test="@document-id = ." role="warning" id="clintrial-related-object-8">
<name/> has an @document-id '<value-of select="@document-id"/>'. But this is not the text of the related-object, which is likely incorrect - <value-of select="."/>.</assert>

<assert test="some $x in document($registries)/registries/registry satisfies ($x/subtitle/string()=@source-id)" role="warning" id="clintrial-related-object-11">
<name/> @source-id value should almost always be one of the subtitles of the Crossref clinical trial registries. "<value-of select="@source-id"/>" is not one of the following <value-of select="string-join(for $x in document($registries)/registries/registry return concat('&quot;',$x/subtitle/string(),'&quot; (',$x/doi/string(),')'),', ')"/>. Is that correct?</assert>
Expand Down
4 changes: 2 additions & 2 deletions test/xspec/schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2579,8 +2579,8 @@
<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-7" test="@xlink:href[not(matches(.,'\p{Zs}'))]" role="error" id="clintrial-related-object-7">
<name/> must have an @xlink:href with a value that does not contain a space character.</assert>

<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8" test="contains(.,@document-id/string())" role="warning" id="clintrial-related-object-8">
<name/> has an @document-id '<value-of select="@document-id"/>'. But this is not in the text, which is likely incorrect - <value-of select="."/>.</assert>
<assert see="https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8" test="@document-id = ." role="warning" id="clintrial-related-object-8">
<name/> has an @document-id '<value-of select="@document-id"/>'. But this is not the text of the related-object, which is likely incorrect - <value-of select="."/>.</assert>

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

0 comments on commit 1e3ed51

Please sign in to comment.