Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

am-as-a.2 missingElement and missingAttribute property fixed #752

Merged
merged 1 commit into from Jun 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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