Skip to content

Commit

Permalink
Downgrade country attribute check to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-atherden committed Jan 10, 2024
1 parent 768cb66 commit 70626a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions schematrons/1.0/auths-affs-errors.sch
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@
<contrib-id> must have a @contrib-id-type.
</assert>
</rule>

<rule context="aff//country">
<let name="countries" value="document('countries.xml')"/>
<let name="country" value="@country"/>

<assert test="@country and (some $code in $countries//*:country satisfies $code/@country = $country)" role="error">
&lt;country> must have a @country that includes the ISO 3166-1 2-letter country code.
</assert>
</rule>

</pattern>

Expand Down
9 changes: 9 additions & 0 deletions schematrons/1.0/auths-affs-warnings.sch
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,13 @@
</assert>
</rule>

<rule context="aff//country">
<let name="countries" value="document('countries.xml')"/>
<let name="country" value="@country"/>

<assert test="@country and (some $code in $countries//*:country satisfies $code/@country = $country)" role="warning">
&lt;country> should have a @country that includes the ISO 3166-1 2-letter country code.
</assert>
</rule>

</pattern>

0 comments on commit 70626a0

Please sign in to comment.