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

Add exception to sub-display-channel rule #577

Merged
merged 1 commit into from
Dec 20, 2023
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
Loading