Skip to content

Commit

Permalink
Merge pull request #587 from elifesciences/pr-587
Browse files Browse the repository at this point in the history
pr 587
  • Loading branch information
fred-atherden authored Feb 13, 2024
2 parents f8734d0 + 66a01dd commit 8b97e2b
Show file tree
Hide file tree
Showing 19 changed files with 396,673 additions and 314,666 deletions.
4 changes: 3 additions & 1 deletion src/final-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2953,7 +2953,9 @@

</rule></pattern><pattern id="math-mi-tests-pattern"><rule context="mml:mi" id="math-mi-tests">

<report test="matches(.,'^\p{Zs}$')" role="error" id="math-mi-space-test">[math-mi-space-test] <name/> element contains only text. Has "\" been used for space in the tex editor, instead of "\,"?</report>
<report test="matches(.,'^\p{Zs}$')" role="error" id="math-mi-space-test">[math-mi-space-test] <name/> element contains only spaces. Has "\" been used for space in the tex editor, instead of "\,"?</report>

<report test="not(*) and normalize-space(.)=''" role="error" id="math-mi-empty-test">[math-mi-empty-test] <name/> element is completely empty. This is not allowed.</report>

</rule></pattern><pattern id="disp-formula-child-tests-pattern"><rule context="disp-formula/*" id="disp-formula-child-tests">

Expand Down
16 changes: 15 additions & 1 deletion src/final-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -16364,7 +16364,21 @@
</xsl:attribute>
<svrl:text>[math-mi-space-test] <xsl:text/>
<xsl:value-of select="name(.)"/>
<xsl:text/> element contains only text. Has "\" been used for space in the tex editor, instead of "\,"?</svrl:text>
<xsl:text/> element contains only spaces. Has "\" been used for space in the tex editor, instead of "\,"?</svrl:text>
</svrl:successful-report>
</xsl:if>

<!--REPORT error-->
<xsl:if test="not(*) and normalize-space(.)=''">
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="not(*) and normalize-space(.)=''">
<xsl:attribute name="id">math-mi-empty-test</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>[math-mi-empty-test] <xsl:text/>
<xsl:value-of select="name(.)"/>
<xsl:text/> element is completely empty. This is not allowed.</svrl:text>
</svrl:successful-report>
</xsl:if>
<xsl:apply-templates select="*" mode="M208"/>
Expand Down
4 changes: 3 additions & 1 deletion src/final-package-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2959,7 +2959,9 @@

</rule></pattern><pattern id="math-mi-tests-pattern"><rule context="mml:mi" id="math-mi-tests">

<report test="matches(.,'^\p{Zs}$')" role="error" id="math-mi-space-test"><name/> element contains only text. Has "\" been used for space in the tex editor, instead of "\,"?</report>
<report test="matches(.,'^\p{Zs}$')" role="error" id="math-mi-space-test"><name/> element contains only spaces. Has "\" been used for space in the tex editor, instead of "\,"?</report>

<report test="not(*) and normalize-space(.)=''" role="error" id="math-mi-empty-test"><name/> element is completely empty. This is not allowed.</report>

</rule></pattern><pattern id="disp-formula-child-tests-pattern"><rule context="disp-formula/*" id="disp-formula-child-tests">

Expand Down
408,429 changes: 206,566 additions & 201,863 deletions src/funders.xml

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/pre-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2898,7 +2898,9 @@

</rule></pattern><pattern id="math-mi-tests-pattern"><rule context="mml:mi" id="math-mi-tests">

<report test="matches(.,'^\p{Zs}$')" role="error" id="math-mi-space-test">[math-mi-space-test] <name/> element contains only text. Has "\" been used for space in the tex editor, instead of "\,"?</report>
<report test="matches(.,'^\p{Zs}$')" role="error" id="math-mi-space-test">[math-mi-space-test] <name/> element contains only spaces. Has "\" been used for space in the tex editor, instead of "\,"?</report>

<report test="not(*) and normalize-space(.)=''" role="error" id="math-mi-empty-test">[math-mi-empty-test] <name/> element is completely empty. This is not allowed.</report>

</rule></pattern><pattern id="disp-formula-child-tests-pattern"><rule context="disp-formula/*" id="disp-formula-child-tests">

Expand Down
Loading

0 comments on commit 8b97e2b

Please sign in to comment.