Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pr 587 #587

Merged
merged 3 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading