DDI 3.1 XML Schema Documentation (2009-10-18)
© DDI Alliance 2009 - licensed under the terms of the GNU Lesser General Public License
complexType "LevelType"
Namespace:
Content:
complex, 1 attribute, 4 elements
Defined:
Includes:
definitions of 1 attribute and 4 elements
Used:
XML Representation Summary
<...
    levelNumber
 = 
xs:integer
    >
   
Content: 
Name, r:Description*, RelationshipType?, Interval?
</...>
Content Model Elements (4):
All Direct / Indirect Based Elements (1):
Known Usage Locations
Annotation
Used to describe the levels of the code scheme hierarchy. The level describes the nesting structure of a hierarchical coding structure. A level could have data attached to it (summary of its children) or no data attached to it (the equivalent of creating a category group in 2.0 and earlier versions Note that the attribute levelNumber is used for referencing specific codes to their level identifier.
XML Source (w/o annotations (6); see within schema source)
<xs:complexType name="LevelType">
<xs:sequence>
<xs:element name="Name" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="r:Description"/>
<xs:element minOccurs="0" ref="RelationshipType"/>
<xs:element minOccurs="0" ref="Interval"/>
</xs:sequence>
<xs:attribute name="levelNumber" type="xs:integer" use="required"/>
</xs:complexType>
Attribute Detail (defined in this component only; 1/1)
levelNumber
Type:
xs:integer, predefined
Use:
required
Designated identifier for the level; generally increases as the level of indention for nesting increases
XML Source (w/o annotations (1); see within schema source)
<xs:attribute name="levelNumber" type="xs:integer" use="required"/>
Content Element Detail (defined in this component only; 4/4)
Interval
Type:
IntervalType, complex content
Identifies the interval between each value of the codes for this code scheme. Used only for codes with interval relationship.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="Interval"/>

Name
Type:
xs:string, predefined, simple content
Name of a level in a code scheme. This should be short and explicit, such as Major Industrial Groups (2 digit SIC Codes) or NUTS 1.
XML Source (w/o annotations (1); see within schema source)
<xs:element name="Name" type="xs:string"/>

r:Description
Type:
r:StructuredStringType, mixed content
Description of a code level.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="r:Description"/>

RelationshipType
Type:
Describes the relationships among categories at that respective level. Possible values are either Nominal, Ordinal, or Interval. Note that different levels may have different types of relationships within the same hierarchy. For example, Level 1 items may be ordinal and Level 2 (the children of Level 1 items) may be nominal.
Simple Content
enumeration of xs:NMTOKEN
Enumeration:
"Nominal"
 - 
A relationship of less than, or greater than, cannot be established among the included categories. This type of relationship is also called categorical or discrete.
"Ordinal"
 - 
The categories in the domain have a rank order.
"Interval"
 - 
The categories in the domain are in rank order and have a consistent interval between each category so that differences between arbitrary pairs of measurements can be meaningfully compared.
"Ratio"
 - 
The categories have all the features of interval measurement and also have meaningful ratios between arbitrary pairs of numbers.
"Continuous"
 - 
May be used to identify both interval and ratio classification levels, when more precise information is not available.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="RelationshipType"/>

XML schema documentation generated with DocFlex/XML SDK 1.7.2 using DocFlex/XML XSDDoc 2.1.0 template set