DDI 3.1 XML Schema Documentation (2009-10-18)
© DDI Alliance 2009 - licensed under the terms of the GNU Lesser General Public License
complexType "VariableType"
Namespace:
Content:
complex, 10 attributes, 13 elements
Defined:
Includes:
definitions of 3 attributes and 10 elements
Used:
XML Representation Summary
<...
    action
 = 
("Add" | "Update" | "Delete")
    id
 = 
xs:string
    isGeographic
 = 
xs:boolean : "false"
    isTemporal
 = 
xs:boolean : "false"
    isVersionable
 = 
"true"
    isWeight
 = 
xs:boolean : "false"
    objectSource
 = 
xs:anyURI
    urn
 = 
xs:anyURI
    version
 = 
xs:string
    versionDate
 = 
(xs:dateTime | xs:date | xs:gYearMonth | xs:gYear | xs:duration)
    >
   
Content: 
UserID*, VersionResponsibility?, VersionRationale*, VariableName*, r:Label*, r:Description*, r:UniverseReference*, ConceptReference?, QuestionReference*, EmbargoReference?, ResponseUnit?, r:AnalysisUnit?, Representation?
</...>
Content Model Elements (13):
All Direct / Indirect Based Elements (1):
Known Usage Locations
Annotation
Describes the structure of a Variable.
Type Definition Detail
Type Derivation Tree
      r:VersionableType (extension)
          VariableType (extension)
XML Source (w/o annotations (13); see within schema source)
<xs:complexType name="VariableType">
<xs:complexContent>
<xs:extension base="r:VersionableType">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="VariableName"/>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="r:Label"/>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="r:Description"/>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="r:UniverseReference"/>
<xs:element minOccurs="0" ref="ConceptReference"/>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="QuestionReference"/>
<xs:element minOccurs="0" ref="EmbargoReference"/>
<xs:element minOccurs="0" name="ResponseUnit" type="xs:string"/>
<xs:element minOccurs="0" ref="r:AnalysisUnit"/>
<xs:element minOccurs="0" ref="Representation"/>
</xs:sequence>
<xs:attribute default="false" name="isTemporal" type="xs:boolean"/>
<xs:attribute default="false" name="isGeographic" type="xs:boolean"/>
<xs:attribute default="false" name="isWeight" type="xs:boolean"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
Attribute Detail (defined in this component only; 3/10)
isGeographic
Type:
xs:boolean, predefined
Use:
optional
Indicates whether the variable relays geographic information.
Attribute Value
Default:
"false"
XML Source (w/o annotations (1); see within schema source)
<xs:attribute default="false" name="isGeographic" type="xs:boolean"/>

isTemporal
Type:
xs:boolean, predefined
Use:
optional
Indicates whether the variable relays time-related information.
Attribute Value
Default:
"false"
XML Source (w/o annotations (1); see within schema source)
<xs:attribute default="false" name="isTemporal" type="xs:boolean"/>

isWeight
Type:
xs:boolean, predefined
Use:
optional
Indicates whether the variable is a weight.
Attribute Value
Default:
"false"
XML Source (w/o annotations (1); see within schema source)
<xs:attribute default="false" name="isWeight" type="xs:boolean"/>
Content Element Detail (defined in this component only; 10/13)
ConceptReference
Type:
r:ReferenceType, complex content
Reference to the concept measured by this variable.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="ConceptReference"/>

EmbargoReference
Type:
r:ReferenceType, complex content
Reference to embargo information pertaining to this variable.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="EmbargoReference"/>

QuestionReference
Type:
r:ReferenceType, complex content
Reference to question(s) used to collect data for this variable. The quesion is found in the datacollection module.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="QuestionReference"/>

r:AnalysisUnit
Type:
r:CodeValueType, simple content
The entity to which the data refer, for example, individuals, families or households, groups, institutions/organizations, administrative units, etc.
Simple Content
xs:string
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="r:AnalysisUnit"/>

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

r:Label
Type:
r:LabelType, mixed content
A display label for the variable.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="r:Label"/>

r:UniverseReference
Type:
r:ReferenceType, complex content
Reference to the universe statement containing a description of the persons or other elements that this variable refers to, and to which any analytic results refer.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="r:UniverseReference"/>

Representation
Type:
RepresentationType, complex content
Describes the representation of the variable in the dataset, including allowed content, data typing, and computation information.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="Representation"/>

ResponseUnit
Type:
xs:string, predefined, simple content
Provides information regarding who provided the information contained within the variable, e.g., respondent, proxy, interviewer.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="ResponseUnit" type="xs:string"/>

VariableName
Type:
r:NameType, simple content
Simple Content
xs:string
XML Source (see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="VariableName"/>

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