element <recGrp> (global)
Namespace:
Type:
Content:
complex, 15 attributes, 2 elements
Defined:
globally in codebook.xsd; see XML source
Used:
XML Representation Summary
<recGrp
   
 = 
xs:ID
 = 
xs:NMTOKEN
 = 
xs:language
 = 
("archive" | "producer") : "producer"
 = 
xs:string
 = 
(xs:dateTime | xs:date | xs:gYearMonth | xs:gYear)
 = 
xs:anyURI
 = 
xs:anyURI
 = 
xs:IDREFS
 = 
xs:string
 = 
xs:IDREFS
 = 
xs:string
 = 
xs:string : "1"
 = 
("numeric" | "character") : "numeric"
 = 
xs:string
    >
   
Content: 
labl*, recDimnsn?
</recGrp>
Content model elements (2):
labl, recDimnsn
Included in content model of elements (1):
fileStrc
Known Usage Locations
Annotation

Record or Record Group

Description

Used to describe record groupings if the file is hierarchical or relational. The attribute "recGrp" allows a record group to indicate subsidiary record groups which nest underneath; this allows for the encoding of a hierarchical structure of record groups. The attribute "rectype" indicates the type of record, e.g., "A records" or "Household records." The attribute "keyvar" is an IDREF that provides the link to other record types. In a hierarchical study consisting of individual and household records, the "keyvar" on the person record will indicate the household to which it belongs. The attribute "rtypeloc" indicates the starting column location of the record type indicator variable on each record of the data file. The attribute "rtypewidth" specifies the width, for files with many different record types. The attribute "rtypevtype" specifies the type of the indicator variable. The "recidvar" indicates the variable that identifies the record group.

Example

<fileStrc type="hierarchical"> <recGrp rectype="Person" keyvar="HHDID"> <labl>CPS 1999 Person-Level Record</labl> <recDimnsn> <varQnty>133</varQnty> <caseQnty>1500</caseQnty> <logRecL>852</logRecL> </recDimnsn> </recGrp> </fileStrc>
XML Source (w/o annotations (1); see within schema source)
<xs:element name="recGrp" type="recGrpType"/>
Attribute Detail (all declarations; 15/15)
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"/>

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

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

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

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

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

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

rtypewidth
Type:
xs:string, predefined
Use:
optional
Defined:
locally within recGrpType complexType
Attribute Value
Default:
"1"
XML Source (see within schema source)
<xs:attribute default="1" name="rtypewidth" 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>

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; 2/2)
labl
Type:
lablType, mixed content
Defined:
by reference within recGrpType complexType
XML Source (see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="labl"/>

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

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