Skip to content

Commit

Permalink
Pay better attention to the (#2611)
Browse files Browse the repository at this point in the history
role= attribute of Schematron assertions & reports.
  • Loading branch information
sydb authored Nov 1, 2024
1 parent d3e798f commit 652da4c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion P5/Utilities/validator.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@
<xsl:template match="svrl:failed-assert|svrl:successful-report">
<xsl:variable name="outGI">
<xsl:choose>
<xsl:when test="@role='nonfatal'">WARNING</xsl:when>
<!-- We explicitly test for the 6 values oXygen provides in its
“sample values include” list, plus the 1 other value that
actually occurs in P5. -->
<xsl:when test="@role = ('info','information')">INFORMATION</xsl:when>
<xsl:when test="@role = ('warn','warning')" >WARNING</xsl:when>
<xsl:when test="@role eq 'nonfatal'" >WARNING</xsl:when>
<xsl:when test="@role = ('error','fatal')" >ERROR</xsl:when>
<xsl:otherwise>ERROR</xsl:otherwise>
</xsl:choose>
</xsl:variable>
Expand Down

0 comments on commit 652da4c

Please sign in to comment.