Skip to content

Commit

Permalink
Merge pull request #752 from inspire-eu-validation/issue-710
Browse files Browse the repository at this point in the history
am-as-a.2 missingElement and missingAttribute property fixed
  • Loading branch information
jenriquesoriano committed Jun 14, 2022
2 parents 25a6c9d + e165669 commit f5bc274
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data-am/am-as/ets-am-as-bsxets.xml
Expand Up @@ -11,11 +11,11 @@ Source: <a href="http://inspire.ec.europa.eu/id/ats/data-am/master/am-as" target
Pre-requisite conformance classes:
<ul><li><a href="http://inspire.ec.europa.eu/id/ats/data-am/master/am-gml" target="_blank">Conformance Class 'GML application schemas, Area Management, Restriction/Regulation Zones and Reporting Units'</a></li></ul>]]></description>
<reference>../../inspire-noggeo-bsxets.xq</reference>
<version>0.1.1</version>
<version>0.1.2</version>
<author>Consortium Bilbomatica, Guadaltel y Geograma</author>
<creationDate>2020-04-22T17:00:00Z</creationDate>
<lastEditor>Consortium Bilbomatica, Guadaltel y Geograma</lastEditor>
<lastUpdateDate>2020-09-10T15:00:00Z</lastUpdateDate>
<lastUpdateDate>2022-03-21T15:45:00Z</lastUpdateDate>
<tags>
<tag ref="EIDe4924746-84a8-11ea-bc55-0242ac130003"/>
</tags>
Expand Down Expand Up @@ -124,12 +124,12 @@ let $messages :=
let $envDoms := $feature/am:zoneType
return
if(not($envDoms)) then
local:addMessage('TR.missingElement', map {'filename': local:filename($feature), 'featureType':local-name($feature), 'gmlid': string($feature/@*:id), 'property': 'environmentalDomain'})
local:addMessage('TR.missingElement', map {'filename': local:filename($feature), 'featureType':local-name($feature), 'gmlid': string($feature/@*:id), 'property': 'ZoneTypeCode'})
else
for $envDom in $envDoms
return
if(not($envDom/@xlink:href)) then
local:addMessage('TR.missingAttribute', map {'filename': local:filename($feature), 'featureType':local-name($feature), 'gmlid': string($feature/@*:id), 'property': 'environmentalDomain', 'attribute': 'xlink:href'})
local:addMessage('TR.missingAttribute', map {'filename': local:filename($feature), 'featureType':local-name($feature), 'gmlid': string($feature/@*:id), 'property': 'ZoneTypeCode', 'attribute': 'xlink:href'})
else if(not($envDom/@xlink:href = $valid_href)) then
local:addMessage('TR.manual.reviewCodeListValue', map {'filename': local:filename($feature), 'featureType':local-name($feature), 'gmlid': string($feature/@*:id), 'property': 'ZoneTypeCode', 'value': string($envDom/@xlink:href), 'codelist': $codelist, 'count':count($features_selected/am:zoneType/@xlink:href = $envDom/@xlink:href)})
else ()
Expand Down

0 comments on commit f5bc274

Please sign in to comment.