Skip to content

Latest commit

 

History

History
78 lines (58 loc) · 4.44 KB

code-list-values.md

File metadata and controls

78 lines (58 loc) · 4.44 KB

Code list values

Version: 1

Purpose: Verify whether all attributes whose value type is a code list take the values set out therein

Prerequisites

Test method

When an attribute has a code list as its type, verify that the values comply with the definitions and include the values set out in Annex II of the regulation. To pass this tests that any instance of an attribute

  • takes only values explicitly specified in the INSPIRE code list register when the code list‘s extensibility is 'none'.

Otherwise report disallowedCodeListValue.

In the Addresses application schema, the following properties have to be tested:

The following is not applicable for this application schema as no extensions are allowed. It is still included here as a reminder in case extensions will be allowed in the future:

Inspect the code list valued property elements. If a value is not one of the values listed above, review the code list definition to check that any extensions do not overlap with the code lists that are defined in Annexes II, III and IV of the Implementing Rule and that all extensions conform to the requirements. This is a manual test.

Reference(s):

Test type: Automated

Notes

Messages

Identifier Message text (parameters start with '$')
disallowedCodeListValue XML document '$filename', $featureType '$gmlid': The property '$propertyName' has a value '$value' that is not one of the allowed values listed at $codelist.

Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression
FerryUseValue (v3) //schema-element(tn-w3:FerryUse)/tn-w3:ferryUse/text()
FerryUseValue (v4) //schema-element(tn-w:FerryUse)/tn-w:ferryUse/@href:xlink
FormOfWaterwayNodeValue (v3) //schema-element(tn-w3:WaterwayNode)/tn-w3:formOfWaterwayNode/text()
FormOfWaterwayNodeValue (v4) //schema-element(tn-w:WaterwayNode)/tn-w:formOfWaterwayNode/@href:xlink