Skip to content

Commit

Permalink
Merge pull request #589 from elifesciences/pr-589
Browse files Browse the repository at this point in the history
Remove math-mi-empty-test
  • Loading branch information
fred-atherden authored Feb 13, 2024
2 parents 22fced7 + 06ba252 commit f361add
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 4,083 deletions.
2 changes: 0 additions & 2 deletions src/final-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2954,8 +2954,6 @@
</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 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
14 changes: 0 additions & 14 deletions src/final-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -16376,20 +16376,6 @@
<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"/>
</xsl:template>
<xsl:template match="text()" priority="-1" mode="M208"/>
Expand Down
2 changes: 0 additions & 2 deletions src/final-package-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2960,8 +2960,6 @@
</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 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
2 changes: 0 additions & 2 deletions src/pre-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -2899,8 +2899,6 @@
</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 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
14 changes: 0 additions & 14 deletions src/pre-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -16242,20 +16242,6 @@
<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="M206"/>
</xsl:template>
<xsl:template match="text()" priority="-1" mode="M206"/>
Expand Down
4 changes: 0 additions & 4 deletions src/schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -4764,10 +4764,6 @@ else self::*/local-name() = $allowed-p-blocks"
<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>

Expand Down
Loading

0 comments on commit f361add

Please sign in to comment.