Documentation for fieldgml

Element: ValueArray

[Table of contents]

  • This element can be used wherever the following element is referenced:
Name ValueArray
Type gml:ValueArrayType
Nillable no
Abstract no
Documentation A Value Array is used for homogeneous arrays of primitive and aggregate values. _ScalarValueList is preferred for arrays of Scalar Values since this is more efficient. Since "choice" is not available for attribute groups, an external constraint (e.g. Schematron) would be required to enforce the selection of only one of these through schema validation
Application Data <sch:pattern name="Check either codeSpace or uom not both">
<sch:rule context="gml:ValueArray">
<sch:report test="@codeSpace and @uom">
ValueArray may not carry both a reference to a codeSpace and a uom
</sch:report>
</sch:rule>
</sch:pattern>
<sch:pattern name="Check components are homogeneous">
<sch:rule context="gml:ValueArray">
<sch:assert test="count(gml:valueComponent/*) = count(gml:valueComponent/*[name() = name(../../gml:valueComponent[1]/*[1])])">
All components of <sch:name/> must be of the same type
</sch:assert>
<sch:assert test="count(gml:valueComponents/*) = count(gml:valueComponents/*[name() = name(../*[1])])">
All components of <sch:name/> must be of the same type
</sch:assert>
</sch:rule>
</sch:pattern>
Logical Diagram
XML Instance Representation
<gml:ValueArray
gml:id="[0..1]"
codeSpace="anyURI [0..1]"
uom="anyURI [0..1]">
<gml:metaDataProperty> ... </gml:metaDataProperty> [0..*]
<gml:description> ... </gml:description> [0..1]
<gml:name> ... </gml:name> [0..*]

'Multiple names may be provided. These will often be distinguished by being assigned by different authorities, as indicated by the value of the codeSpace attribute. In an instance document there will usually only be one name per authority.'

<gml:valueComponent> ... </gml:valueComponent> [0..*]
<gml:valueComponents> ... </gml:valueComponents> [0..1]
</gml:ValueArray>
Diagram
h-623612179
Schema Component Representation
<element name="ValueArray" type=" gml:ValueArrayType " substitutionGroup="gml:CompositeValue"/>