Skip to content

Commit

Permalink
Add exception to sub-display-channel rule
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-atherden committed Dec 20, 2023
1 parent 32fc291 commit 68db0d7
Show file tree
Hide file tree
Showing 2,101 changed files with 8,398 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dl-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>
<!-- specific exception -->
<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
4 changes: 4 additions & 0 deletions src/dl-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
<xsl:function xmlns="http://purl.oclc.org/dsdl/schematron" name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
4 changes: 4 additions & 0 deletions src/final-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>
<!-- specific exception -->
<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
4 changes: 4 additions & 0 deletions src/final-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
<xsl:function xmlns="http://purl.oclc.org/dsdl/schematron" name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
4 changes: 4 additions & 0 deletions src/final-package-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>
<!-- specific exception -->
<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
4 changes: 4 additions & 0 deletions src/pre-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>
<!-- specific exception -->
<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
4 changes: 4 additions & 0 deletions src/pre-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
<xsl:function xmlns="http://purl.oclc.org/dsdl/schematron" name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
4 changes: 4 additions & 0 deletions src/schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>
<!-- specific exception -->
<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
4 changes: 4 additions & 0 deletions test/tests/gen/KRT-check/KRT-presence/KRT-presence.sch
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
4 changes: 4 additions & 0 deletions test/tests/gen/KRT-check/krt-missing/krt-missing.sch
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
4 changes: 4 additions & 0 deletions test/tests/gen/KRT-td-checks/addgene-test/addgene-test.sch
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
4 changes: 4 additions & 0 deletions test/tests/gen/KRT-td-checks/doi-link-test/doi-link-test.sch
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
<xsl:function name="e:titleCase" as="xs:string">
<xsl:param name="s" as="xs:string"/>
<xsl:choose>

<xsl:when test="lower-case($s)='protein kinase a'">
<xsl:value-of select="'Protein Kinase A'"/>
</xsl:when>
<xsl:when test="contains($s,' ')">
<xsl:variable name="token1" select="substring-before($s,' ')"/>
<xsl:variable name="token2" select="substring-after($s,$token1)"/>
Expand Down
Loading

0 comments on commit 68db0d7

Please sign in to comment.