Skip to content

Commit

Permalink
Merge pull request #838 from inspire-eu-validation/issue-1028
Browse files Browse the repository at this point in the history
sd-ia.a.2 xsi:nil condition added
  • Loading branch information
jenriquesoriano authored May 8, 2024
2 parents b64a2f2 + ff73058 commit 42e424c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions data-sd/sd-ia/ets-sd-ia-bsxets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ Pre-requisite conformance classes:
<ul><li><a href="http://inspire.ec.europa.eu/id/ats/data/master/information-accessibility" target="_blank">Conformance Class 'Information accessibility'</a></li>
</ul>]]></description>
<reference>../../inspire-noggeo-bsxets.xq</reference>
<version>0.1.2</version>
<version>0.1.3</version>
<author>Consortium Bilbomatica, Guadaltel y Geograma</author>
<creationDate>2020-08-06T14:45:00Z</creationDate>
<lastEditor>Consortium Bilbomatica, Guadaltel y Geograma</lastEditor>
<lastUpdateDate>2023-06-16T11:45:00Z</lastUpdateDate>
<lastEditor>Consortium Bilbomatica y Guadaltel</lastEditor>
<lastUpdateDate>2024-04-23T15:30:00Z</lastUpdateDate>
<tags>
<tag ref="EIDce23680b-d081-400e-93b0-030ed193b78e"/>
</tags>
Expand Down Expand Up @@ -49,8 +49,6 @@ Pre-requisite conformance classes:
<description>IGNORE</description>
<parent ref="EIDc7ec6434-6d55-4ec4-bf48-5c5dd5760a53"/>
<testCases>


<TestCase id="EIDbf116588-2133-4d79-a93f-b2cb5a6a7598">
<label>Code lists</label>
<description>Verify that code lists extensions can be accessed.</description>
Expand Down Expand Up @@ -155,7 +153,7 @@ let $messages :=
return
if (count($envDom) > 1) then
local:addMessage('TR.wrongMultiplicitySpeciesDistribution', map {'filename': local:filename($feature/../..), 'featureType':local-name($feature/../..), 'gmlid': string($feature/../../@*:id), 'element': $property_string, 'multiplicity': 1, 'count': count($envDom)})
else if (not((count($envDom) = count($envDom/@xlink:href) + count($envDom/@nilReason)))) then
else if (not(count($envDom) = count($envDom/@xlink:href) + count($envDom/@nilReason)) and (count($envDom[@xsi:nil = "true"]) = 0)) then
local:addMessage('TR.missingAttributeSpeciesDistribution', map {'filename': local:filename($feature/../..), 'featureType':local-name($feature/../..), 'gmlid': string($feature/@*:id), 'property': $property_string, 'attribute': 'xlink:href'})
else if(count($invalid_urls) > 0) then
local:addMessage('TR.brokenLink', map {'filename': local:filename($feature/../..), 'featureType':local-name($feature/../..), 'gmlid': string($feature/../../@*:id), 'property': $property_string, 'value': string($envDom/@xlink:href)})
Expand Down

0 comments on commit 42e424c

Please sign in to comment.