Schema digiquest-questionary.xsd


schema location:  C:\work\digiquest\doc\digiquest-questionary.xsd
 
Elements  Complex types  Simple types 
questionary  check  textevalmode 
condition 
conditionaltask 
echo 
evalboolean 
evalmultiplechoice 
evalsinglechoice 
evaltext 
header 
option 
post 
pre 
question 
question-boolean 
question-multiplechoice 
question-singlechoice 
questions 
setoptionalsuccessor 
task 
twoconditions 


element questionary
diagram
children header questions
annotation
documentation 
root element for questionary
source
<xs:element name="questionary">
  <xs:annotation>
    <xs:documentation>root element for questionary</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="header" type="header">
        <xs:annotation>
          <xs:documentation>questionary wide informations</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="questions" type="questions">
        <xs:annotation>
          <xs:documentation>questions of the questionary</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element questionary/header
diagram
type header
children id title firstid
annotation
documentation 
questionary wide informations
source
<xs:element name="header" type="header">
  <xs:annotation>
    <xs:documentation>questionary wide informations</xs:documentation>
  </xs:annotation>
</xs:element>

element questionary/questions
diagram
type questions
children question-informational question-text question-boolean question-multiplechoice question-singlechoice
annotation
documentation 
questions of the questionary
source
<xs:element name="questions" type="questions">
  <xs:annotation>
    <xs:documentation>questions of the questionary</xs:documentation>
  </xs:annotation>
</xs:element>

complexType check
diagram
children condition
used by
element question/check
annotation
documentation 
check conditions of a question
source
<xs:complexType name="check">
  <xs:annotation>
    <xs:documentation>check conditions of a question</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="condition" type="condition" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>conditions to check the result , which is given to the question</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element check/condition
diagram
type condition
children and or not evaltext evalboolean evalsinglechoice evalmultiplechoice
annotation
documentation 
conditions to check the result , which is given to the question
source
<xs:element name="condition" type="condition" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>conditions to check the result , which is given to the question</xs:documentation>
  </xs:annotation>
</xs:element>

complexType condition
diagram
children and or not evaltext evalboolean evalsinglechoice evalmultiplechoice
used by
elements conditionaltask/condition check/condition condition/not twoconditions/not
annotation
documentation 
condition that holds a condition element
source
<xs:complexType name="condition">
  <xs:annotation>
    <xs:documentation>condition that holds a condition element</xs:documentation>
  </xs:annotation>
  <xs:choice>
    <xs:element name="and" type="twoconditions">
      <xs:annotation>
        <xs:documentation>AND operator</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="or" type="twoconditions">
      <xs:annotation>
        <xs:documentation>OR operator</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="not" type="condition">
      <xs:annotation>
        <xs:documentation>NOT operator</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="evaltext" type="evaltext">
      <xs:annotation>
        <xs:documentation>condition to evaluate a text question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="evalboolean" type="evalboolean">
      <xs:annotation>
        <xs:documentation>condition to evaluate a boolean question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="evalsinglechoice" type="evalsinglechoice">
      <xs:annotation>
        <xs:documentation>condition to evaluate a single choice question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="evalmultiplechoice" type="evalmultiplechoice">
      <xs:annotation>
        <xs:documentation>condition to evaluate a multiple choice question</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:choice>
</xs:complexType>

element condition/and
diagram
type twoconditions
children and or not evaltext evalboolean evalsinglechoice evalmultiplechoice
annotation
documentation 
AND operator
source
<xs:element name="and" type="twoconditions">
  <xs:annotation>
    <xs:documentation>AND operator</xs:documentation>
  </xs:annotation>
</xs:element>

element condition/or
diagram
type twoconditions
children and or not evaltext evalboolean evalsinglechoice evalmultiplechoice
annotation
documentation 
OR operator
source
<xs:element name="or" type="twoconditions">
  <xs:annotation>
    <xs:documentation>OR operator</xs:documentation>
  </xs:annotation>
</xs:element>

element condition/not
diagram
type condition
children and or not evaltext evalboolean evalsinglechoice evalmultiplechoice
annotation
documentation 
NOT operator
source
<xs:element name="not" type="condition">
  <xs:annotation>
    <xs:documentation>NOT operator</xs:documentation>
  </xs:annotation>
</xs:element>

element condition/evaltext
diagram
type evaltext
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
mode  textevalmode  required      
text  xs:string  optional      
annotation
documentation 
condition to evaluate a text question
source
<xs:element name="evaltext" type="evaltext">
  <xs:annotation>
    <xs:documentation>condition to evaluate a text question</xs:documentation>
  </xs:annotation>
</xs:element>

element condition/evalboolean
diagram
type evalboolean
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
value  xs:boolean  required      
annotation
documentation 
condition to evaluate a boolean question
source
<xs:element name="evalboolean" type="evalboolean">
  <xs:annotation>
    <xs:documentation>condition to evaluate a boolean question</xs:documentation>
  </xs:annotation>
</xs:element>

element condition/evalsinglechoice
diagram
type evalsinglechoice
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
option_id  xs:integer  required      
annotation
documentation 
condition to evaluate a single choice question
source
<xs:element name="evalsinglechoice" type="evalsinglechoice">
  <xs:annotation>
    <xs:documentation>condition to evaluate a single choice question</xs:documentation>
  </xs:annotation>
</xs:element>

element condition/evalmultiplechoice
diagram
type evalmultiplechoice
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
option_id  xs:integer  required      
annotation
documentation 
condition to evaluate a multiple choice question
source
<xs:element name="evalmultiplechoice" type="evalmultiplechoice">
  <xs:annotation>
    <xs:documentation>condition to evaluate a multiple choice question</xs:documentation>
  </xs:annotation>
</xs:element>

complexType conditionaltask
diagram
children condition task
used by
elements pre/conditionaltask post/conditionaltask
annotation
documentation 
a condition and a task
source
<xs:complexType name="conditionaltask">
  <xs:annotation>
    <xs:documentation>a condition and a task</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="condition" type="condition">
      <xs:annotation>
        <xs:documentation>condition to evaluate</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="task" type="task">
      <xs:annotation>
        <xs:documentation>task to execute if condition is true</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element conditionaltask/condition
diagram
type condition
children and or not evaltext evalboolean evalsinglechoice evalmultiplechoice
annotation
documentation 
condition to evaluate
source
<xs:element name="condition" type="condition">
  <xs:annotation>
    <xs:documentation>condition to evaluate</xs:documentation>
  </xs:annotation>
</xs:element>

element conditionaltask/task
diagram
type task
children echo setoptionalsuccessor
annotation
documentation 
task to execute if condition is true
source
<xs:element name="task" type="task">
  <xs:annotation>
    <xs:documentation>task to execute if condition is true</xs:documentation>
  </xs:annotation>
</xs:element>

complexType echo
diagram
used by
element task/echo
attributes
Name  Type  Use  Default  Fixed  Annotation
text  xs:string  required      
annotation
documentation 
task for giving out a string to console, only for debugging
source
<xs:complexType name="echo">
  <xs:annotation>
    <xs:documentation>task for giving out a string to console, only for debugging</xs:documentation>
  </xs:annotation>
  <xs:attribute name="text" type="xs:string" use="required"/>
</xs:complexType>

complexType evalboolean
diagram
used by
elements condition/evalboolean twoconditions/evalboolean
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
value  xs:boolean  required      
annotation
documentation 
condition to evaluate a boolean question
source
<xs:complexType name="evalboolean">
  <xs:annotation>
    <xs:documentation>condition to evaluate a boolean question</xs:documentation>
  </xs:annotation>
  <xs:attribute name="question_id" type="xs:integer" use="required"/>
  <xs:attribute name="value" type="xs:boolean" use="required"/>
</xs:complexType>

complexType evalmultiplechoice
diagram
used by
elements condition/evalmultiplechoice twoconditions/evalmultiplechoice
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
option_id  xs:integer  required      
annotation
documentation 
condition to evaluate a multiple choice question
source
<xs:complexType name="evalmultiplechoice">
  <xs:annotation>
    <xs:documentation>condition to evaluate a multiple choice question</xs:documentation>
  </xs:annotation>
  <xs:attribute name="question_id" type="xs:integer" use="required"/>
  <xs:attribute name="option_id" type="xs:integer" use="required"/>
</xs:complexType>

complexType evalsinglechoice
diagram
used by
elements condition/evalsinglechoice twoconditions/evalsinglechoice
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
option_id  xs:integer  required      
annotation
documentation 
condition to evaluate a single choice question
source
<xs:complexType name="evalsinglechoice">
  <xs:annotation>
    <xs:documentation>condition to evaluate a single choice question</xs:documentation>
  </xs:annotation>
  <xs:attribute name="question_id" type="xs:integer" use="required"/>
  <xs:attribute name="option_id" type="xs:integer" use="required"/>
</xs:complexType>

complexType evaltext
diagram
used by
elements condition/evaltext twoconditions/evaltext
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
mode  textevalmode  required      
text  xs:string  optional      
annotation
documentation 
condition to evaluate a text question
source
<xs:complexType name="evaltext">
  <xs:annotation>
    <xs:documentation>condition to evaluate a text question</xs:documentation>
  </xs:annotation>
  <xs:attribute name="question_id" type="xs:integer" use="required"/>
  <xs:attribute name="mode" type="textevalmode" use="required"/>
  <xs:attribute name="text" type="xs:string" use="optional"/>
</xs:complexType>

complexType header
diagram
children id title firstid
used by
element questionary/header
annotation
documentation 
questionary header
source
<xs:complexType name="header">
  <xs:annotation>
    <xs:documentation>questionary header</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="id" type="xs:integer">
      <xs:annotation>
        <xs:documentation>id of the questionary</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="title" type="xs:string">
      <xs:annotation>
        <xs:documentation>titel of the questionary</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="firstid" type="xs:integer">
      <xs:annotation>
        <xs:documentation>id of the question to start with</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element header/id
diagram
type xs:integer
annotation
documentation 
id of the questionary
source
<xs:element name="id" type="xs:integer">
  <xs:annotation>
    <xs:documentation>id of the questionary</xs:documentation>
  </xs:annotation>
</xs:element>

element header/title
diagram
type xs:string
annotation
documentation 
titel of the questionary
source
<xs:element name="title" type="xs:string">
  <xs:annotation>
    <xs:documentation>titel of the questionary</xs:documentation>
  </xs:annotation>
</xs:element>

element header/firstid
diagram
type xs:integer
annotation
documentation 
id of the question to start with
source
<xs:element name="firstid" type="xs:integer">
  <xs:annotation>
    <xs:documentation>id of the question to start with</xs:documentation>
  </xs:annotation>
</xs:element>

complexType option
diagram
children text value
used by
elements question-singlechoice/options/option question-multiplechoice/options/option
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:integer        
annotation
documentation 
a option for single- or multiplechoice questions
source
<xs:complexType name="option">
  <xs:annotation>
    <xs:documentation>a option for single- or multiplechoice questions</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="text" type="xs:string">
      <xs:annotation>
        <xs:documentation>text to show</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="value" type="xs:string">
      <xs:annotation>
        <xs:documentation>value to save</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
  <xs:attribute name="id" type="xs:integer"/>
</xs:complexType>

element option/text
diagram
type xs:string
annotation
documentation 
text to show
source
<xs:element name="text" type="xs:string">
  <xs:annotation>
    <xs:documentation>text to show</xs:documentation>
  </xs:annotation>
</xs:element>

element option/value
diagram
type xs:string
annotation
documentation 
value to save
source
<xs:element name="value" type="xs:string">
  <xs:annotation>
    <xs:documentation>value to save</xs:documentation>
  </xs:annotation>
</xs:element>

complexType post
diagram
children conditionaltask task
used by
element question/post
annotation
documentation 
post section of a question
source
<xs:complexType name="post">
  <xs:annotation>
    <xs:documentation>post section of a question</xs:documentation>
  </xs:annotation>
  <xs:choice maxOccurs="unbounded">
    <xs:element name="conditionaltask" type="conditionaltask">
      <xs:annotation>
        <xs:documentation>condition to evaluate and maybe execute the task</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="task" type="task">
      <xs:annotation>
        <xs:documentation>task to execute</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:choice>
</xs:complexType>

element post/conditionaltask
diagram
type conditionaltask
children condition task
annotation
documentation 
condition to evaluate and maybe execute the task
source
<xs:element name="conditionaltask" type="conditionaltask">
  <xs:annotation>
    <xs:documentation>condition to evaluate and maybe execute the task</xs:documentation>
  </xs:annotation>
</xs:element>

element post/task
diagram
type task
children echo setoptionalsuccessor
annotation
documentation 
task to execute
source
<xs:element name="task" type="task">
  <xs:annotation>
    <xs:documentation>task to execute</xs:documentation>
  </xs:annotation>
</xs:element>

complexType pre
diagram
children conditionaltask task
used by
element question/pre
annotation
documentation 
pre section of a question
source
<xs:complexType name="pre">
  <xs:annotation>
    <xs:documentation>pre section of a question</xs:documentation>
  </xs:annotation>
  <xs:choice maxOccurs="unbounded">
    <xs:element name="conditionaltask" type="conditionaltask">
      <xs:annotation>
        <xs:documentation>condition to evaluate and maybe execute the task</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="task" type="task">
      <xs:annotation>
        <xs:documentation>task to execute</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:choice>
</xs:complexType>

element pre/conditionaltask
diagram
type conditionaltask
children condition task
annotation
documentation 
condition to evaluate and maybe execute the task
source
<xs:element name="conditionaltask" type="conditionaltask">
  <xs:annotation>
    <xs:documentation>condition to evaluate and maybe execute the task</xs:documentation>
  </xs:annotation>
</xs:element>

element pre/task
diagram
type task
children echo setoptionalsuccessor
annotation
documentation 
task to execute
source
<xs:element name="task" type="task">
  <xs:annotation>
    <xs:documentation>task to execute</xs:documentation>
  </xs:annotation>
</xs:element>

complexType question
diagram
children id mandatory multipleuse text successor pre post check
used by
elements questions/question-informational questions/question-text
complexTypes question-boolean question-multiplechoice question-singlechoice
annotation
documentation 
base type for questions, can be derived from to create more complex questions like multiplechoice
source
<xs:complexType name="question">
  <xs:annotation>
    <xs:documentation>base type for questions, can be derived from to create more complex questions like multiplechoice</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="id" type="xs:integer">
      <xs:annotation>
        <xs:documentation>question id</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="mandatory" type="xs:boolean">
      <xs:annotation>
        <xs:documentation>specifies whether  the question can be skipped or not</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="multipleuse" type="xs:boolean">
      <xs:annotation>
        <xs:documentation>specifies whether the question can be used (displayed and answered) more than one time</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="text" type="xs:string">
      <xs:annotation>
        <xs:documentation>text of the question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="successor" type="xs:integer">
      <xs:annotation>
        <xs:documentation>id of the next question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="pre" type="pre" minOccurs="0">
      <xs:annotation>
        <xs:documentation>pre section of the question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="post" type="post" minOccurs="0">
      <xs:annotation>
        <xs:documentation>post section of the question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="check" type="check" minOccurs="0">
      <xs:annotation>
        <xs:documentation>conditions to check the result of the question</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element question/id
diagram
type xs:integer
annotation
documentation 
question id
source
<xs:element name="id" type="xs:integer">
  <xs:annotation>
    <xs:documentation>question id</xs:documentation>
  </xs:annotation>
</xs:element>

element question/mandatory
diagram
type xs:boolean
annotation
documentation 
specifies whether  the question can be skipped or not
source
<xs:element name="mandatory" type="xs:boolean">
  <xs:annotation>
    <xs:documentation>specifies whether  the question can be skipped or not</xs:documentation>
  </xs:annotation>
</xs:element>

element question/multipleuse
diagram
type xs:boolean
annotation
documentation 
specifies whether the question can be used (displayed and answered) more than one time
source
<xs:element name="multipleuse" type="xs:boolean">
  <xs:annotation>
    <xs:documentation>specifies whether the question can be used (displayed and answered) more than one time</xs:documentation>
  </xs:annotation>
</xs:element>

element question/text
diagram
type xs:string
annotation
documentation 
text of the question
source
<xs:element name="text" type="xs:string">
  <xs:annotation>
    <xs:documentation>text of the question</xs:documentation>
  </xs:annotation>
</xs:element>

element question/successor
diagram
type xs:integer
annotation
documentation 
id of the next question
source
<xs:element name="successor" type="xs:integer">
  <xs:annotation>
    <xs:documentation>id of the next question</xs:documentation>
  </xs:annotation>
</xs:element>

element question/pre
diagram
type pre
children conditionaltask task
annotation
documentation 
pre section of the question
source
<xs:element name="pre" type="pre" minOccurs="0">
  <xs:annotation>
    <xs:documentation>pre section of the question</xs:documentation>
  </xs:annotation>
</xs:element>

element question/post
diagram
type post
children conditionaltask task
annotation
documentation 
post section of the question
source
<xs:element name="post" type="post" minOccurs="0">
  <xs:annotation>
    <xs:documentation>post section of the question</xs:documentation>
  </xs:annotation>
</xs:element>

element question/check
diagram
type check
children condition
annotation
documentation 
conditions to check the result of the question
source
<xs:element name="check" type="check" minOccurs="0">
  <xs:annotation>
    <xs:documentation>conditions to check the result of the question</xs:documentation>
  </xs:annotation>
</xs:element>

complexType question-boolean
diagram
type extension of question
children id mandatory multipleuse text successor pre post check truetext falsetext
used by
element questions/question-boolean
annotation
documentation 
question type for boolean questions
source
<xs:complexType name="question-boolean">
  <xs:annotation>
    <xs:documentation>question type for boolean questions</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="question">
      <xs:sequence>
        <xs:element name="truetext" type="xs:string">
          <xs:annotation>
            <xs:documentation>text to show as the true option</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="falsetext" type="xs:string">
          <xs:annotation>
            <xs:documentation>text to show as the false option</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element question-boolean/truetext
diagram
type xs:string
annotation
documentation 
text to show as the true option
source
<xs:element name="truetext" type="xs:string">
  <xs:annotation>
    <xs:documentation>text to show as the true option</xs:documentation>
  </xs:annotation>
</xs:element>

element question-boolean/falsetext
diagram
type xs:string
annotation
documentation 
text to show as the false option
source
<xs:element name="falsetext" type="xs:string">
  <xs:annotation>
    <xs:documentation>text to show as the false option</xs:documentation>
  </xs:annotation>
</xs:element>

complexType question-multiplechoice
diagram
type extension of question
children id mandatory multipleuse text successor pre post check minselect maxselect options
used by
element questions/question-multiplechoice
annotation
documentation 
question type for multiple choice questions
source
<xs:complexType name="question-multiplechoice">
  <xs:annotation>
    <xs:documentation>question type for multiple choice questions</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="question">
      <xs:sequence>
        <xs:element name="minselect" type="xs:integer" minOccurs="0">
          <xs:annotation>
            <xs:documentation>specifies how many options must be selected at minimum</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="maxselect" type="xs:integer" minOccurs="0">
          <xs:annotation>
            <xs:documentation>specifies how many options can be selected at maximum</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="options">
          <xs:annotation>
            <xs:documentation>options for the question</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="option" type="option" maxOccurs="unbounded"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element question-multiplechoice/minselect
diagram
type xs:integer
annotation
documentation 
specifies how many options must be selected at minimum
source
<xs:element name="minselect" type="xs:integer" minOccurs="0">
  <xs:annotation>
    <xs:documentation>specifies how many options must be selected at minimum</xs:documentation>
  </xs:annotation>
</xs:element>

element question-multiplechoice/maxselect
diagram
type xs:integer
annotation
documentation 
specifies how many options can be selected at maximum
source
<xs:element name="maxselect" type="xs:integer" minOccurs="0">
  <xs:annotation>
    <xs:documentation>specifies how many options can be selected at maximum</xs:documentation>
  </xs:annotation>
</xs:element>

element question-multiplechoice/options
diagram
children option
annotation
documentation 
options for the question
source
<xs:element name="options">
  <xs:annotation>
    <xs:documentation>options for the question</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="option" type="option" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element question-multiplechoice/options/option
diagram
type option
children text value
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:integer        
source
<xs:element name="option" type="option" maxOccurs="unbounded"/>

complexType question-singlechoice
diagram
type extension of question
children id mandatory multipleuse text successor pre post check options
used by
element questions/question-singlechoice
annotation
documentation 
question type for single choice questions
source
<xs:complexType name="question-singlechoice">
  <xs:annotation>
    <xs:documentation>question type for single choice questions</xs:documentation>
  </xs:annotation>
  <xs:complexContent>
    <xs:extension base="question">
      <xs:sequence>
        <xs:element name="options">
          <xs:annotation>
            <xs:documentation>options for the question</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="option" type="option" minOccurs="2" maxOccurs="unbounded"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

element question-singlechoice/options
diagram
children option
annotation
documentation 
options for the question
source
<xs:element name="options">
  <xs:annotation>
    <xs:documentation>options for the question</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="option" type="option" minOccurs="2" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element question-singlechoice/options/option
diagram
type option
children text value
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:integer        
source
<xs:element name="option" type="option" minOccurs="2" maxOccurs="unbounded"/>

complexType questions
diagram
children question-informational question-text question-boolean question-multiplechoice question-singlechoice
used by
element questionary/questions
annotation
documentation 
contains all questions
source
<xs:complexType name="questions">
  <xs:annotation>
    <xs:documentation>contains all questions</xs:documentation>
  </xs:annotation>
  <xs:choice maxOccurs="unbounded">
    <xs:element name="question-informational" type="question">
      <xs:annotation>
        <xs:documentation>question from type INFORMATIONAL</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="question-text" type="question">
      <xs:annotation>
        <xs:documentation>question from type TEXT</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="question-boolean" type="question-boolean">
      <xs:annotation>
        <xs:documentation>question from type BOOLEAN</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="question-multiplechoice" type="question-multiplechoice">
      <xs:annotation>
        <xs:documentation>question from type MULTIPLECHOICE</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="question-singlechoice" type="question-singlechoice">
      <xs:annotation>
        <xs:documentation>question from type SINGLECHOICE</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:choice>
</xs:complexType>

element questions/question-informational
diagram
type question
children id mandatory multipleuse text successor pre post check
annotation
documentation 
question from type INFORMATIONAL
source
<xs:element name="question-informational" type="question">
  <xs:annotation>
    <xs:documentation>question from type INFORMATIONAL</xs:documentation>
  </xs:annotation>
</xs:element>

element questions/question-text
diagram
type question
children id mandatory multipleuse text successor pre post check
annotation
documentation 
question from type TEXT
source
<xs:element name="question-text" type="question">
  <xs:annotation>
    <xs:documentation>question from type TEXT</xs:documentation>
  </xs:annotation>
</xs:element>

element questions/question-boolean
diagram
type question-boolean
children id mandatory multipleuse text successor pre post check truetext falsetext
annotation
documentation 
question from type BOOLEAN
source
<xs:element name="question-boolean" type="question-boolean">
  <xs:annotation>
    <xs:documentation>question from type BOOLEAN</xs:documentation>
  </xs:annotation>
</xs:element>

element questions/question-multiplechoice
diagram
type question-multiplechoice
children id mandatory multipleuse text successor pre post check minselect maxselect options
annotation
documentation 
question from type MULTIPLECHOICE
source
<xs:element name="question-multiplechoice" type="question-multiplechoice">
  <xs:annotation>
    <xs:documentation>question from type MULTIPLECHOICE</xs:documentation>
  </xs:annotation>
</xs:element>

element questions/question-singlechoice
diagram
type question-singlechoice
children id mandatory multipleuse text successor pre post check options
annotation
documentation 
question from type SINGLECHOICE
source
<xs:element name="question-singlechoice" type="question-singlechoice">
  <xs:annotation>
    <xs:documentation>question from type SINGLECHOICE</xs:documentation>
  </xs:annotation>
</xs:element>

complexType setoptionalsuccessor
diagram
used by
element task/setoptionalsuccessor
attributes
Name  Type  Use  Default  Fixed  Annotation
successor  xs:integer  required      
annotation
documentation 
task for setting an optional successor
source
<xs:complexType name="setoptionalsuccessor">
  <xs:annotation>
    <xs:documentation>task for setting an optional successor</xs:documentation>
  </xs:annotation>
  <xs:attribute name="successor" type="xs:integer" use="required"/>
</xs:complexType>

complexType task
diagram
children echo setoptionalsuccessor
used by
elements conditionaltask/task pre/task post/task
annotation
documentation 
task to perform
source
<xs:complexType name="task">
  <xs:annotation>
    <xs:documentation>task to perform</xs:documentation>
  </xs:annotation>
  <xs:choice>
    <xs:element name="echo" type="echo">
      <xs:annotation>
        <xs:documentation>task to give an echo out on the console</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="setoptionalsuccessor" type="setoptionalsuccessor">
      <xs:annotation>
        <xs:documentation>task to set an optional successor</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:choice>
</xs:complexType>

element task/echo
diagram
type echo
attributes
Name  Type  Use  Default  Fixed  Annotation
text  xs:string  required      
annotation
documentation 
task to give an echo out on the console
source
<xs:element name="echo" type="echo">
  <xs:annotation>
    <xs:documentation>task to give an echo out on the console</xs:documentation>
  </xs:annotation>
</xs:element>

element task/setoptionalsuccessor
diagram
type setoptionalsuccessor
attributes
Name  Type  Use  Default  Fixed  Annotation
successor  xs:integer  required      
annotation
documentation 
task to set an optional successor
source
<xs:element name="setoptionalsuccessor" type="setoptionalsuccessor">
  <xs:annotation>
    <xs:documentation>task to set an optional successor</xs:documentation>
  </xs:annotation>
</xs:element>

complexType twoconditions
diagram
children and or not evaltext evalboolean evalsinglechoice evalmultiplechoice
used by
elements condition/and twoconditions/and condition/or twoconditions/or
annotation
documentation 
condition that holds two condition elements
source
<xs:complexType name="twoconditions">
  <xs:annotation>
    <xs:documentation>condition that holds two condition elements</xs:documentation>
  </xs:annotation>
  <xs:choice minOccurs="2" maxOccurs="2">
    <xs:element name="and" type="twoconditions">
      <xs:annotation>
        <xs:documentation>AND operator</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="or" type="twoconditions">
      <xs:annotation>
        <xs:documentation>OR operator</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="not" type="condition">
      <xs:annotation>
        <xs:documentation>NOT operator</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="evaltext" type="evaltext">
      <xs:annotation>
        <xs:documentation>condition to evaluate a text question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="evalboolean" type="evalboolean">
      <xs:annotation>
        <xs:documentation>condition to evaluate a boolean question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="evalsinglechoice" type="evalsinglechoice">
      <xs:annotation>
        <xs:documentation>condition to evaluate a single choice question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="evalmultiplechoice" type="evalmultiplechoice">
      <xs:annotation>
        <xs:documentation>condition to evaluate a multiple choice question</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:choice>
</xs:complexType>

element twoconditions/and
diagram
type twoconditions
children and or not evaltext evalboolean evalsinglechoice evalmultiplechoice
annotation
documentation 
AND operator
source
<xs:element name="and" type="twoconditions">
  <xs:annotation>
    <xs:documentation>AND operator</xs:documentation>
  </xs:annotation>
</xs:element>

element twoconditions/or
diagram
type twoconditions
children and or not evaltext evalboolean evalsinglechoice evalmultiplechoice
annotation
documentation 
OR operator
source
<xs:element name="or" type="twoconditions">
  <xs:annotation>
    <xs:documentation>OR operator</xs:documentation>
  </xs:annotation>
</xs:element>

element twoconditions/not
diagram
type condition
children and or not evaltext evalboolean evalsinglechoice evalmultiplechoice
annotation
documentation 
NOT operator
source
<xs:element name="not" type="condition">
  <xs:annotation>
    <xs:documentation>NOT operator</xs:documentation>
  </xs:annotation>
</xs:element>

element twoconditions/evaltext
diagram
type evaltext
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
mode  textevalmode  required      
text  xs:string  optional      
annotation
documentation 
condition to evaluate a text question
source
<xs:element name="evaltext" type="evaltext">
  <xs:annotation>
    <xs:documentation>condition to evaluate a text question</xs:documentation>
  </xs:annotation>
</xs:element>

element twoconditions/evalboolean
diagram
type evalboolean
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
value  xs:boolean  required      
annotation
documentation 
condition to evaluate a boolean question
source
<xs:element name="evalboolean" type="evalboolean">
  <xs:annotation>
    <xs:documentation>condition to evaluate a boolean question</xs:documentation>
  </xs:annotation>
</xs:element>

element twoconditions/evalsinglechoice
diagram
type evalsinglechoice
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
option_id  xs:integer  required      
annotation
documentation 
condition to evaluate a single choice question
source
<xs:element name="evalsinglechoice" type="evalsinglechoice">
  <xs:annotation>
    <xs:documentation>condition to evaluate a single choice question</xs:documentation>
  </xs:annotation>
</xs:element>

element twoconditions/evalmultiplechoice
diagram
type evalmultiplechoice
attributes
Name  Type  Use  Default  Fixed  Annotation
question_id  xs:integer  required      
option_id  xs:integer  required      
annotation
documentation 
condition to evaluate a multiple choice question
source
<xs:element name="evalmultiplechoice" type="evalmultiplechoice">
  <xs:annotation>
    <xs:documentation>condition to evaluate a multiple choice question</xs:documentation>
  </xs:annotation>
</xs:element>

simpleType textevalmode
type restriction of xs:string
used by
attribute evaltext/@mode
facets
enumeration isempty
annotation
documentation 
enumeration for text eval modes
source
<xs:simpleType name="textevalmode">
  <xs:annotation>
    <xs:documentation>enumeration for text eval modes</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:string">
    <xs:enumeration value="isempty"/>
  </xs:restriction>
</xs:simpleType>


XML Schema documentation generated with
XMLSPY Schema Editor http://www.altova.com/xmlspy