element <measure> (global)
Namespace:
Type:
Content:
empty, 15 attributes
Defined:
globally in codebook.xsd; see XML source
Used:
XML Representation Summary
<measure
   
 = 
xs:ID
 = 
xs:NMTOKEN
 = 
xs:language
 = 
("archive" | "producer") : "producer"
 = 
xs:string
 = 
(xs:dateTime | xs:date | xs:gYearMonth | xs:gYear)
 = 
xs:anyURI
 = 
xs:anyURI
 = 
xs:IDREF
 = 
("sum" | "average" | "count" | "mode" | "median" | "maximum" | "minimum" | "percent" | "other")
 = 
xs:NMTOKEN
 = 
xs:string
 = 
xs:string
 = 
xs:string
 = 
("stock" | "flow" | "non-additive")
/>
Included in content model of elements (1):
nCube
Known Usage Locations
Annotation

Measure

Description

The element measure indicates the measurement features of the cell content: type of aggregation used, measurement unit, and measurement scale. An origin point is recorded for anchored scales, to be used in determining relative movement along the scale. Additivity indicates whether an aggregate is a stock (like the population at a given point in time) or a flow (like the number of births or deaths over a certain period of time). The non-additive flag is to be used for measures that for logical reasons cannot be aggregated to a higher level - for instance, data that only make sense at a certain level of aggregation, like a classification. Two nCubes may be identical except for their measure - for example, a count of persons by age and percent of persons by age. Measure is an empty element that includes the following attributes: "varRef" is an IDREF; "aggrMeth" indicates the type of aggregation method used, for example 'sum', 'average', 'count'; "measUnit" records the measurement unit, for example 'km', 'miles', etc.; "scale" records unit of scale, for example 'x1', 'x1000'; "origin" records the point of origin for anchored scales;"additivity" records type of additivity such as 'stock', 'flow', 'non-additive'. If a value of "other" is used for the aggrMeth attribute, a term from a controlled vocabulary should be placed in the "otherAggrMeth" attribute, and a the complex element controlledVocabUsed should be used to specify the controlled vocabulary.
XML Source (w/o annotations (1); see within schema source)
<xs:element name="measure" type="measureType"/>
Attribute Detail (all declarations; 15/15)
additivity
Type:
anonymous simpleType (restriction of xs:NMTOKEN)
Use:
optional
Defined:
locally within measureType complexType
Attribute Value
enumeration of xs:NMTOKEN
Enumeration:
"stock", "flow", "non-additive"
Anonymous simpleType
Type Derivation Tree
xs:NMTOKEN (restriction)
  simpleType
Derivation:
restriction of xs:NMTOKEN
Facets:
enumeration:
"stock", "flow", "non-additive"
XML Source (see within schema source)
<xs:attribute name="additivity">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="stock"/>
<xs:enumeration value="flow"/>
<xs:enumeration value="non-additive"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>

aggrMeth
Type:
anonymous simpleType (restriction of xs:NMTOKEN)
Use:
optional
Defined:
locally within measureType complexType
Attribute Value
enumeration of xs:NMTOKEN
Enumeration:
"sum", "average", "count", "mode", "median", "maximum", "minimum", "percent", "other"
Anonymous simpleType
Type Derivation Tree
xs:NMTOKEN (restriction)
  simpleType
Derivation:
restriction of xs:NMTOKEN
Facets:
enumeration:
"sum", "average", "count", "mode", "median", "maximum", "minimum", "percent", "other"
XML Source (see within schema source)
<xs:attribute name="aggrMeth">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="sum"/>
<xs:enumeration value="average"/>
<xs:enumeration value="count"/>
<xs:enumeration value="mode"/>
<xs:enumeration value="median"/>
<xs:enumeration value="maximum"/>
<xs:enumeration value="minimum"/>
<xs:enumeration value="percent"/>
<xs:enumeration value="other"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>

ddiCodebookUrn
Type:
xs:anyURI, predefined
Use:
optional
Defined:
locally within GLOBALS attributeGroup
Used to capture the DDI-Codebook type URN for the element. This is used to assign a DDI-Codebook specific URN to the element, according the format prescribed by the DDI-Codebook standard.
XML Source (w/o annotations (1); see within schema source)
<xs:attribute name="ddiCodebookUrn" type="xs:anyURI" use="optional"/>

ddiLifecycleUrn
Type:
xs:anyURI, predefined
Use:
optional
Defined:
locally within GLOBALS attributeGroup
Used to capture the DDI-Lifecycle type URN for the element. This may be captured during translation from DDI-Lifecycle to DDI-Codebook structure or in preparation for transferring to a DDI-Lifecycle structure.
XML Source (w/o annotations (1); see within schema source)
<xs:attribute name="ddiLifecycleUrn" type="xs:anyURI" use="optional"/>

elementVersion
Type:
xs:string, predefined
Use:
optional
Defined:
locally within GLOBALS attributeGroup
Captures version of the element
XML Source (w/o annotations (1); see within schema source)
<xs:attribute name="elementVersion" type="xs:string" use="optional"/>

elementVersionDate
Type:
Use:
optional
Defined:
locally within GLOBALS attributeGroup
Indicates version date for the element. Use YYYY-MM-DD, YYYY-MM, or YYYY formats.
Attribute Value
xs:dateTime | xs:date | xs:gYearMonth | xs:gYear
XML Source (w/o annotations (1); see within schema source)
<xs:attribute name="elementVersionDate" type="dateSimpleType" use="optional"/>

ID
Type:
xs:ID, predefined
Use:
optional
Defined:
locally within GLOBALS attributeGroup
XML Source (see within schema source)
<xs:attribute name="ID" type="xs:ID" use="optional"/>

measUnit
Type:
xs:string, predefined
Use:
optional
Defined:
locally within measureType complexType
XML Source (see within schema source)
<xs:attribute name="measUnit" type="xs:string"/>

origin
Type:
xs:string, predefined
Use:
optional
Defined:
locally within measureType complexType
XML Source (see within schema source)
<xs:attribute name="origin" type="xs:string"/>

otherAggrMeth
Type:
xs:NMTOKEN, predefined
Use:
optional
Defined:
locally within measureType complexType
XML Source (see within schema source)
<xs:attribute name="otherAggrMeth" type="xs:NMTOKEN" use="optional"/>

scale
Type:
xs:string, predefined
Use:
optional
Defined:
locally within measureType complexType
XML Source (see within schema source)
<xs:attribute name="scale" type="xs:string"/>

source
Type:
anonymous simpleType (restriction of xs:NMTOKEN)
Use:
optional
Defined:
locally within GLOBALS attributeGroup
Attribute Value
enumeration of xs:NMTOKEN
Enumeration:
"archive", "producer"
Default:
"producer"
Anonymous simpleType
Type Derivation Tree
xs:NMTOKEN (restriction)
  simpleType
Derivation:
restriction of xs:NMTOKEN
Facets:
enumeration:
"archive", "producer"
XML Source (see within schema source)
<xs:attribute default="producer" name="source">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="archive"/>
<xs:enumeration value="producer"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>

varRef
Type:
xs:IDREF, predefined
Use:
optional
Defined:
locally within measureType complexType
XML Source (see within schema source)
<xs:attribute name="varRef" type="xs:IDREF"/>

xml-lang
Type:
xs:NMTOKEN, predefined
Use:
optional
Defined:
locally within GLOBALS attributeGroup
DO NOT USE THIS ATTRIBUTE. Its inclusion is an error that was persisted to retain backward compatibility. If this attribute has been used, transfer the content to xml:lang.
XML Source (w/o annotations (1); see within schema source)
<xs:attribute name="xml-lang" type="xs:NMTOKEN" use="optional"/>

xml:lang
Type:
xs:language, predefined
Use:
optional
Defined:
by reference within GLOBALS attributeGroup
XML Source (see within schema source)
<xs:attribute ref="xml:lang" use="optional"/>

XML schema documentation generated with DocFlex/XML 1.8.7 using DocFlex/XML XSDDoc 2.7.0 template set