DDI 3.1 XML Schema Documentation (2009-10-18)
© DDI Alliance 2009 - licensed under the terms of the GNU Lesser General Public License
complexType "IfThenElseType"
Namespace:
Content:
complex, 7 attributes, 13 elements
Defined:
Includes:
definitions of 4 elements
Used:
XML Representation Summary
<...
    action
 = 
("Add" | "Update" | "Delete")
    id
 = 
xs:string
    isVersionable
 = 
"true"
    objectSource
 = 
xs:anyURI
    urn
 = 
xs:anyURI
    version
 = 
xs:string
    versionDate
 = 
(xs:dateTime | xs:date | xs:gYearMonth | xs:gYear | xs:duration)
    >
   
Content: 
UserID*, VersionResponsibility?, VersionRationale*, ConstructName*, r:Label*, r:Description*, ExternalAid*, (ExternalInterviewerInstructionReference | InterviewerInstructionReference)*, IfCondition, ThenConstructReference, ElseIf*, ElseConstructReference?
</...>
Content Model Elements (13):
All Direct / Indirect Based Elements (1):
Known Usage Locations
Annotation
Provides an if-then-else construct, so that if the stated condition is met, the Then clause is triggered, and otherwise the Else clause is triggered.
Type Definition Detail
Type Derivation Tree
      r:VersionableType (extension)
          ControlConstructType (extension)
              IfThenElseType (extension)
XML Source (w/o annotations (5); see within schema source)
<xs:complexType name="IfThenElseType">
<xs:complexContent>
<xs:extension base="ControlConstructType">
<xs:sequence>
<xs:element ref="IfCondition"/>
<xs:element ref="ThenConstructReference"/>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="ElseIf"/>
<xs:element minOccurs="0" ref="ElseConstructReference"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
Content Element Detail (defined in this component only; 4/13)
ElseConstructReference
Type:
r:ReferenceType, complex content
Reference to the control construct which is triggered if the associated condition is not met.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="ElseConstructReference"/>

ElseIf
Type:
ElseIfType, complex content
Use for multiple branching from a single point in the flow logic represpented by the flow logic If, Then, ElseIf, Then, etc.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="ElseIf"/>

IfCondition
Type:
r:CodeType, complex content
The condition which must be met to trigger the Then clause, expressed as a Coding. The condition is an expression in the programming language used in the instrument.
XML Source (w/o annotations (1); see within schema source)
<xs:element ref="IfCondition"/>

ThenConstructReference
Type:
r:ReferenceType, complex content
Reference to the control construct which should be triggered if the associated condition is met.
XML Source (w/o annotations (1); see within schema source)
<xs:element ref="ThenConstructReference"/>

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