<?xml version="1.0" encoding="UTF-8"?>
<question type="PATTERN">

  <text>Select and order the needed steps</text>

  <!--
  identifiers should be non-numeric. Numeric identifiers create option groups.
  Descriptions are displayed when the user selects an option.
  -->
  <option identifier="a">
    <choice>Step A.</choice>
    
    <description>
      <b>Step A:</b><br />
      A description of step A
    </description>
  </option>

  <option identifier="b">
    <choice>Step B.</choice>

    <description>
      <b>Step B:</b><br />
      A description of step B
    </description>
  </option>

  <option identifier="c">
    <choice>Step C.</choice>
    <description>
      <b>Step C:</b><br />
      A description of step C
    </description>
  </option>

  <option identifier="d">
    <choice>Step D.</choice>
    <description>
      <b>Step D:</b><br />
      A description of step D
    </description>
  </option>

  <option identifier="e">
    <choice>Step E.</choice>
    <description>
      <b>Step E:</b><br />
      A description of step E
    </description>
  </option>

  <option identifier="f">
    <choice>Step F.</choice>
    <description>
      <b>Step F:</b><br />
      A description of step F
    </description>
  </option>


  <!--
    The "answer" is a string with the names of the selected options.
    the pattern is a regular expression that is matched against this answer.
  -->
  <mapping correct="1">
    <match pattern="^bcd$" />
    <feedback>Correct. You only need steps B, C and D.
    </feedback>
  </mapping>

  <mapping correct="0">
    <match pattern="^[^b]*c.*$" />
    <feedback>You can not do step C unless you first do step B.</feedback>
  </mapping>

  <mapping correct="0">
    <match pattern=".*" />
    <feedback mintries="1">Nope, that't not correct. Try again.</feedback>
    <feedback mintries="2" maxtries="2">You only need three steps.</feedback>
    <feedback mintries="3">You need steps BCD.</feedback>
  </mapping>

</question>