Location: PHPKode > projects > Ps and Qs: Processing QTI using PHP > qti-eb/qtifiles/slider-example.xml
<?xml version = "1.0" encoding = "UTF-8" standalone = "no"?>
<!DOCTYPE questestinterop SYSTEM "ims_qtiasiv1p2p1.dtd">

<!-- Author:  Colin Smythe                 -->

<!-- Date:  14th February, 2003               -->

<!-- Version 1.2 Compliant Example: BasicExample017b  -->

<!-- Basic Example with response processing        -->
<questestinterop>
  <qticomment>This is a standard numerical fill-in-blank using slider rendering.</qticomment>
  <item title = "Standard FIB numerical Item with Slider rendering" ident = "IMS_V01_I_fibi_ir_002">
    <presentation label = "BasicExample017b">
      <flow>
        <material>
          <mattext>The interior angles in a triangle add up to how many degrees?</mattext>
        </material>
        <flow>
          <response_num ident = "NUM04" rcardinality = "Single" rtiming = "No">
            <render_slider lowerbound = "1" upperbound = "360" step = "1" startval = "90" steplabel = "No" orientation = "Horizontal">
              <response_label ident = "A"/>
            </render_slider>
          </response_num>
        </flow>
      </flow>
    </presentation>
    <resprocessing>
      <outcomes>
        <decvar varname = "SCORE1" vartype = "Integer" defaultval = "1"/>
      </outcomes>
      <respcondition>
        <qticomment>Scoring for the correct answer.</qticomment>
        <conditionvar>
          <varequal respident = "NUM04">180</varequal>
        </conditionvar>
        <setvar action = "Add" varname = "SCORE1">9</setvar>
        <displayfeedback feedbacktype = "Response" linkrefid = "Correct"/>
      </respcondition>
    </resprocessing>
    <itemfeedback ident = "Correct" view = "Candidate">
      <flow_mat>
        <material>
          <mattext>Yes, 180 degrees.</mattext>
        </material>
      </flow_mat>
    </itemfeedback>
  </item>
</questestinterop>
Return current item: Ps and Qs: Processing QTI using PHP