element <qstn> (global)
Namespace:
Type:
Content:
mixed (allows character data), 14 attributes, 30 elements
Defined:
globally in codebook.xsd; see XML source
Used:
XML Representation Summary
<qstn
   
 = 
xs:ID
 = 
xs:NMTOKEN
 = 
xs:language
 = 
("archive" | "producer") : "producer"
 = 
xs:string
 = 
(xs:dateTime | xs:date | xs:gYearMonth | xs:gYear)
 = 
xs:anyURI
 = 
xs:anyURI
 = 
xs:IDREF
 = 
xs:IDREFS
 = 
xs:string
 = 
xs:IDREFS
 = 
("text" | "numeric" | "code" | "category" | "datetime" | "geographic" | "multiple" | "other")
 = 
xs:NMTOKEN
    >
   
Content: 
{text} × (ExtLink* | Link* | div | emph | head | hi | list | p | xhtml:h1 | xhtml:h2 | xhtml:h3 | xhtml:h4 | xhtml:h5 | xhtml:h6 | xhtml:ul | xhtml:ol | xhtml:dl | xhtml:p | xhtml:div | xhtml:pre | xhtml:blockquote | xhtml:address | xhtml:hr | xhtml:table | preQTxt | qstnLit | postQTxt | forward | backward | ivuInstr)*
</qstn>
Content model elements (30):
ExtLink, Link, backward, div, emph, forward, head, hi, ivuInstr, list, p, postQTxt, preQTxt, qstnLit, xhtml:address, xhtml:blockquote, xhtml:div, xhtml:dl, xhtml:h1, xhtml:h2, xhtml:h3, xhtml:h4, xhtml:h5, xhtml:h6, xhtml:hr, xhtml:ol, xhtml:p, xhtml:pre, xhtml:table, xhtml:ul
Included in content model of elements (1):
var
Known Usage Locations
Annotation

Question

Description

The question element may have mixed content. The element itself may contain text for the question, with the subelements being used to provide further information about the question. Alternatively, the question element may be empty and only the subelements used. The element has a unique question ID attribute which can be used to link a variable with other variables where the same question has been asked. This would allow searching for all variables that share the same question ID, perhaps because the questions was asked several times in a panel design. The "ID" attribute contains a unique identifier for the question. "Var" references the ID(s) of the variable(s) relating to the question. The attribute "seqNo" refers to the sequence number of the question. The attribute "sdatrefs" may be used to reference elements in the summary data description section of the Study Description which might apply to this question. These elements include: time period covered, date of collection, nation or country, geographic coverage, geographic unit, unit of analysis, universe, and kind of data. The responseDomainType attribute was added to capture the specific DDI 3 response domain type to facilitate translation between DDI 2 and DDI 3. If this is given a value of "other" then a term from a controlled vocabulary should be put into the "otherResponseDomainType" attribute.

Example

<var> <qstn ID="Q125">When you get together with your friends, would you say you discuss political matters frequently, occasionally, or never?</qstn> </var>
XML Source (w/o annotations (1); see within schema source)
<xs:element name="qstn" type="qstnType"/>
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"/>

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

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

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

responseDomainType
Type:
anonymous simpleType (restriction of xs:NMTOKEN)
Use:
optional
Defined:
locally within qstnType complexType
Attribute Value
enumeration of xs:NMTOKEN
Enumeration:
"text", "numeric", "code", "category", "datetime", "geographic", "multiple", "other"
Anonymous simpleType
Type Derivation Tree
xs:NMTOKEN (restriction)
  simpleType
Derivation:
restriction of xs:NMTOKEN
Facets:
enumeration:
"text", "numeric", "code", "category", "datetime", "geographic", "multiple", "other"
XML Source (see within schema source)
<xs:attribute name="responseDomainType" use="optional">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="text"/>
<xs:enumeration value="numeric"/>
<xs:enumeration value="code"/>
<xs:enumeration value="category"/>
<xs:enumeration value="datetime"/>
<xs:enumeration value="geographic"/>
<xs:enumeration value="multiple"/>
<xs:enumeration value="other"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>

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

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

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

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; 30/30)
backward
Type:
backwardType, mixed content
Defined:
by reference within qstnType complexType
XML Source (see within schema source)
<xs:element ref="backward"/>

div
Type:
divType, complex content
Defined:
by reference within FORM group
XML Source (see within schema source)
<xs:element ref="div"/>

emph
Type:
emphType, mixed content
Defined:
by reference within FORM group
XML Source (see within schema source)
<xs:element ref="emph"/>

ExtLink
Type:
ExtLinkType, mixed content
Defined:
by reference within PHRASE group
XML Source (see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="ExtLink"/>

forward
Type:
forwardType, mixed content
Defined:
by reference within qstnType complexType
XML Source (see within schema source)
<xs:element ref="forward"/>

head
Type:
headType, mixed content
Defined:
by reference within FORM group
XML Source (see within schema source)
<xs:element ref="head"/>

hi
Type:
hiType, mixed content
Defined:
by reference within FORM group
XML Source (see within schema source)
<xs:element ref="hi"/>

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

Link
Type:
LinkType, mixed content
Defined:
by reference within PHRASE group
XML Source (see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="Link"/>

list
Type:
listType, complex content
Defined:
by reference within FORM group
XML Source (see within schema source)
<xs:element ref="list"/>

p
Type:
pType, mixed content
Defined:
by reference within FORM group
XML Source (see within schema source)
<xs:element ref="p"/>

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

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

qstnLit
Type:
qstnLitType, mixed content
Defined:
by reference within qstnType complexType
XML Source (see within schema source)
<xs:element ref="qstnLit"/>

xhtml:address
Type:
xhtml:address.type, mixed content
Defined:
XML Source (see within schema source)
<xs:element ref="address"/>

xhtml:blockquote
Type:
xhtml:blockquote.type, complex content
Defined:
XML Source (see within schema source)
<xs:element ref="blockquote"/>

xhtml:div
Type:
xhtml:div.type, mixed content
Defined:
XML Source (see within schema source)
<xs:element ref="div"/>

xhtml:dl
Type:
xhtml:dl.type, complex content
Defined:
XML Source (see within schema source)
<xs:element ref="dl"/>

xhtml:h1
Type:
xhtml:h1.type, mixed content
Defined:
XML Source (see within schema source)
<xs:element ref="h1"/>

xhtml:h2
Type:
xhtml:h2.type, mixed content
Defined:
XML Source (see within schema source)
<xs:element ref="h2"/>

xhtml:h3
Type:
xhtml:h3.type, mixed content
Defined:
XML Source (see within schema source)
<xs:element ref="h3"/>

xhtml:h4
Type:
xhtml:h4.type, mixed content
Defined:
XML Source (see within schema source)
<xs:element ref="h4"/>

xhtml:h5
Type:
xhtml:h5.type, mixed content
Defined:
XML Source (see within schema source)
<xs:element ref="h5"/>

xhtml:h6
Type:
xhtml:h6.type, mixed content
Defined:
XML Source (see within schema source)
<xs:element ref="h6"/>

xhtml:hr
Type:
xhtml:hr.type, empty content
Defined:
XML Source (see within schema source)
<xs:element ref="hr"/>

xhtml:ol
Type:
xhtml:ol.type, complex content
Defined:
XML Source (see within schema source)
<xs:element ref="ol"/>

xhtml:p
Type:
xhtml:p.type, mixed content
Defined:
XML Source (see within schema source)
<xs:element ref="p"/>

xhtml:pre
Type:
xhtml:pre.type, mixed content
Defined:
XML Source (see within schema source)
<xs:element ref="pre"/>

xhtml:table
Type:
xhtml:table.type, complex content
Defined:
XML Source (see within schema source)
<xs:element ref="table"/>

xhtml:ul
Type:
xhtml:ul.type, complex content
Defined:
XML Source (see within schema source)
<xs:element ref="ul"/>

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