Skip to content

Commit

Permalink
#1096 Enforce INSPIRE implementing rule 2.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
heikkidoeleman committed Oct 5, 2012
1 parent 815eeae commit 6ada6d9
Showing 1 changed file with 10 additions and 2 deletions.
Expand Up @@ -497,7 +497,9 @@ USA.
<sch:assert test="count(gmd:resourceConstraints/*) > 0">
<sch:value-of select="$loc/strings/alert.M45.rc/div"/>
</sch:assert>


<!-- cardinality of accessconstraints is [1..n] -->
<sch:let name="accessConstraints_count" value="count(gmd:resourceConstraints/*/gmd:accessConstraints/*/text())"/>

<!-- If the value of accessConstraints is otherRestrictions
there shall be instances of otherConstraints expressing
Expand All @@ -522,7 +524,13 @@ USA.
"/>
<sch:let name="otherConstraintInfo"
value="gmd:resourceConstraints/*/gmd:otherConstraints/gco:CharacterString"/>


<sch:assert test="accessConstraints_count">
<sch:value-of select="$loc/strings/alert.M45.ca/div"/>
</sch:assert>
<sch:report test="accessConstraints_count">
<sch:value-of select="$loc/strings/report.M45.ca/div"/>
</sch:report>
<sch:assert test="not($accessConstraints)">
<sch:value-of select="$loc/strings/alert.M45.or/div"/>
</sch:assert>
Expand Down

0 comments on commit 6ada6d9

Please sign in to comment.