Skip to content

Commit

Permalink
Merge pull request #715 from inspire-eu-validation/issue-625
Browse files Browse the repository at this point in the history
ge-ia.b.2 and ge-ia.b.3 missing element and wrong multiplicity conditions removed
  • Loading branch information
jenriquesoriano authored Mar 16, 2022
2 parents b4bcd8e + 6df7da8 commit 137dcff
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions data-ge/ge-ia/ets-ge-ia-bsxets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -595,11 +595,7 @@ let $messages :=
else ()
else ()
return
if (not(exists($feature/ge:geophObjectSet))) then
local:addMessage('TR.missingElement', map {'filename': local:filename($feature), 'featureType':local-name($feature), 'gmlid': string($feature/@*:id), 'property': $property_string})
else if (count($feature/ge:geophObjectSet) > 1) then
local:addMessage('TR.wrongMultiplicity', map {'filename': local:filename($feature), 'featureType':local-name($feature), 'gmlid': string($feature/@*:id), 'element': $property_string, 'multiplicity': 1, 'count': count($feature/ge:geophObjectSet)})
else if (count($invalid_urls) > 0) then
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-join($invalid_urls, ',')})
else if (count($invalid_element_reference) > 0) then
local:addMessage('TR.missingReferencedElement', map {'filename': local:filename($feature), 'featureType':local-name($feature), 'gmlid': string($feature/@*:id), 'property': $property_string, 'value': string-join($invalid_element_reference, ',')})
Expand All @@ -611,8 +607,6 @@ $messages)
</expression>
<testItemType ref="EIDf0edc596-49d2-48d6-a1a1-1ac581dcde0a"/>
<translationTemplates>
<translationTemplate ref="TR.missingElement"/>
<translationTemplate ref="TR.wrongMultiplicity"/>
<translationTemplate ref="TR.brokenLink"/>
<translationTemplate ref="TR.missingReferencedElement"/>
</translationTemplates>
Expand Down Expand Up @@ -657,11 +651,7 @@ let $messages :=
else ()
else ()
return
if (not(exists($feature/ge:geophObjectMember))) then
local:addMessage('TR.missingElement', map {'filename': local:filename($feature), 'featureType':local-name($feature), 'gmlid': string($feature/@*:id), 'property': $property_string})
else if (count($feature/ge:geophObjectMember) > 1) then
local:addMessage('TR.wrongMultiplicity', map {'filename': local:filename($feature), 'featureType':local-name($feature), 'gmlid': string($feature/@*:id), 'element': $property_string, 'multiplicity': 1, 'count': count($feature/ge:geophObjectMember)})
else if (count($invalid_urls) > 0) then
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-join($invalid_urls, ',')})
else if (count($invalid_element_reference) > 0) then
local:addMessage('TR.missingReferencedElement', map {'filename': local:filename($feature), 'featureType':local-name($feature), 'gmlid': string($feature/@*:id), 'property': $property_string, 'value': string-join($invalid_element_reference, ',')})
Expand All @@ -673,8 +663,6 @@ $messages)
</expression>
<testItemType ref="EIDf0edc596-49d2-48d6-a1a1-1ac581dcde0a"/>
<translationTemplates>
<translationTemplate ref="TR.missingElement"/>
<translationTemplate ref="TR.wrongMultiplicity"/>
<translationTemplate ref="TR.brokenLink"/>
<translationTemplate ref="TR.missingReferencedElement"/>
</translationTemplates>
Expand Down

0 comments on commit 137dcff

Please sign in to comment.