Skip to content

Commit

Permalink
includes merge in schematron
Browse files Browse the repository at this point in the history
  • Loading branch information
oriol committed Mar 31, 2023
1 parent 8ed3629 commit d94c022
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cii/schematron/CII/EN16931-CII-syntax.sch
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@
<param name="CII-DT-095" value="not(ram:DepartmentName)"/>
<param name="CII-DT-096" value="not(ram:AdditionalStreetName)"/>
<!-- DateTimeString -->
<param name="CII-DT-097" value="matches(.,'^\s*(\d{4})(1[0-2]|0[1-9])(3[01]|[12][0-9]|0[1-9])\s*$')"/>
<param name="CII-DT-097" value="matches(.,'^\s*(\d{4})(1[0-2]|0[1-9]){1}(3[01]|[12][0-9]|0[1-9]){1}\s*$')"/>

<!-- Sections -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@
<assert id="CII-DT-096" flag="fatal" test="not(ram:AdditionalStreetName)">[CII-DT-096] - AdditionalStreetName shall not be used.</assert>
</rule>
<rule context="//udt:DateTimeString[@format = '102']">
<assert id="CII-DT-097" flag="fatal" test="matches(.,'^\s*(\d{8})\s*$')">[CII-DT-097] - Date time string with format attribute 102 shall be YYYYMMDD.</assert>
<assert id="CII-DT-097" flag="fatal" test="matches(.,'^\s*(\d{4})(1[0-2]|0[1-9]){1}(3[01]|[12][0-9]|0[1-9]){1}\s*$')">[CII-DT-097] - Date time string with format attribute 102 shall be YYYYMMDD.</assert>
</rule>
</pattern>
<pattern id="EN16931-Codes">
Expand Down
4 changes: 2 additions & 2 deletions cii/xslt/EN16931-CII-validation.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -11806,9 +11806,9 @@

<!--ASSERT -->
<xsl:choose>
<xsl:when test="matches(.,'^\s*(\d{8})\s*$')" />
<xsl:when test="matches(.,'^\s*(\d{4})(1[0-2]|0[1-9]){1}(3[01]|[12][0-9]|0[1-9]){1}\s*$')" />
<xsl:otherwise>
<svrl:failed-assert test="matches(.,'^\s*(\d{8})\s*$')">
<svrl:failed-assert test="matches(.,'^\s*(\d{4})(1[0-2]|0[1-9]){1}(3[01]|[12][0-9]|0[1-9]){1}\s*$')">
<xsl:attribute name="id">CII-DT-097</xsl:attribute>
<xsl:attribute name="flag">fatal</xsl:attribute>
<xsl:attribute name="location">
Expand Down

0 comments on commit d94c022

Please sign in to comment.