element <location> (global)
Namespace:
Type:
Content:
empty, 14 attributes
Defined:
globally in codebook.xsd; see XML source
Used:
XML Representation Summary
<location
   
 = 
xs:ID
 = 
xs:NMTOKEN
 = 
xs:language
 = 
("archive" | "producer") : "producer"
 = 
xs:string
 = 
(xs:dateTime | xs:date | xs:gYearMonth | xs:gYear)
 = 
xs:anyURI
 = 
xs:anyURI
 = 
xs:string
 = 
xs:string
 = 
xs:string
 = 
xs:string
 = 
xs:IDREF
 = 
xs:IDREF
/>
Included in content model of elements (2):
nCube, var
Known Usage Locations
Annotation

Location

Description

This is an empty element containing only the attributes listed below. Attributes include "StartPos" (starting position of variable), "EndPos" (ending position of variable), "width" (number of columns the variable occupies), "RecSegNo" (the record segment number, deck or card number the variable is located on), and "fileid", an IDREF link to the fileDscr element for the file that this location is within (this is necessary in cases where the same variable may be coded in two different files, e.g., a logical record length type file and a card image type file). Note that if there is no width or ending position, then the starting position should be the ordinal position in the file, and the file would be described as free-format. The attribute "locMap" is an IDREF to the element locMap and serves as a pointer to indicate that the location information for the nCube's cells (aggregate data) is located in that section.

Example

<var> <location StartPos="55" EndPos="57" width="3" RecSegNo="2" fileid="CARD-IMAGE"/> <location StartPos="167" EndPos="169" fileid="LRECL"/> </var> <nCube> <location locMap="LM"/> </nCube>
XML Source (w/o annotations (1); see within schema source)
<xs:element name="location" type="locationType"/>
Attribute Detail (all declarations; 14/14)
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"/>

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

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

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

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

RecSegNo
Type:
xs:string, predefined
Use:
optional
Defined:
locally within locationType complexType
XML Source (see within schema source)
<xs:attribute name="RecSegNo" 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>

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

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

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