element <catgry> (global)
Namespace:
Type:
Content:
complex, 15 attributes, 5 elements
Defined:
globally in codebook.xsd; see XML source
Used:
XML Representation Summary
<catgry
   
 = 
xs:ID
 = 
xs:NMTOKEN
 = 
xs:language
 = 
("archive" | "producer") : "producer"
 = 
xs:string
 = 
(xs:dateTime | xs:date | xs:gYearMonth | xs:gYear)
 = 
xs:anyURI
 = 
xs:anyURI
 = 
("Y" | "N") : "N"
 = 
xs:string
 = 
xs:string
 = 
xs:IDREFS
 = 
("true" | "false") : "true"
 = 
xs:IDREFS
 = 
xs:IDREF
    >
   
Content: 
catValu?, labl*, txt*, catStat*, mrow?
</catgry>
Content model elements (5):
catStat, catValu, labl, mrow, txt
Included in content model of elements (1):
var
Known Usage Locations
Annotation

Category

Description

A description of a particular response.

The attribute "missing" indicates whether this category group contains missing data or not.

The attribute "missType" is used to specify the type of missing data, e.g., inap., don't know, no answer, etc.

The attribute "country" allows for the denotation of country-specific category values.

The "sdatrefs" attribute records the ID values of all elements within the summary data description that apply to this category.

The exclusiveness attribute ("excls") should be set to "false" if the category can appear in more than one place in the classification hierarchy.

The attribute "catgry" is an IDREF referencing any child categories of this category element. Used to capture nested hierarchies of categories.

The attribute "level" is an IDREF referencing the catLevel ID in which this category exists.

Example

<catlevel ID="Level1" levelnm="Broader sectors"/> <catlevel ID="Level2" levelnm="Narrower sectors"/> <catlevel ID="Level3" levelnm="Occupations"/> <catgry ID="C1" catgry="C2" Level="Level1"> <catValu>0</catValu> <labl>Management, professional and related occupations</labl> </catgry> <catgry ID="C2" catgry="C3, C4" Level="Level2"> <catValu>01</catValu> <labl>Management occupations</labl> </catgry> <catgry ID="C3" Level="Level3"> <catValu>011</catValu> <labl>Top executives</labl> </catgry> <catgry ID="C4" Level="Level3"> <catValu>012</catValu> <labl>Financial managers</labl> </catgry>
XML Source (w/o annotations (1); see within schema source)
<xs:element name="catgry" type="catgryType"/>
Attribute Detail (all declarations; 15/15)
catgry
Type:
xs:IDREFS, predefined
Use:
optional
Defined:
locally within catgryType complexType
XML Source (see within schema source)
<xs:attribute name="catgry" type="xs:IDREFS" use="optional"/>

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

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"/>

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

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"/>

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

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

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

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

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>

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"/>
Content Element Detail (all declarations; 5/5)
catStat
Type:
catStatType, mixed content
Defined:
by reference within catgryType complexType
XML Source (see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="catStat"/>

catValu
Type:
simpleTextType, mixed content
Defined:
by reference within catgryType complexType
XML Source (see within schema source)
<xs:element minOccurs="0" ref="catValu"/>

labl
Type:
lablType, mixed content
Defined:
by reference within catgryType complexType
XML Source (see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="labl"/>

mrow
Type:
mrowType, complex content
Defined:
by reference within catgryType complexType
XML Source (see within schema source)
<xs:element minOccurs="0" ref="mrow"/>

txt
Type:
txtType, mixed content
Defined:
by reference within catgryType complexType
XML Source (see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="txt"/>

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