<?xml version="1.0" encoding="UTF-8"?>
<question type="PATTERN" duplicates="1">
<text>
Select and order the needed steps and on which days they should be
performed. This question allows you to select each step more than once.
</text>
<!--
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>
<!--
numeric identifiers create option groups.
-->
<option identifier="1"><choice>Day 1</choice></option>
<option identifier="2"><choice>Day 2</choice></option>
<!--
Default Answer, used if the user sees the question for the first time.
-->
<!-- default value="12" / -->
<!--
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="^1bc2d$" />
<feedback>Correct. You need to do steps B and C on day 1 and step D on day 2.
</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="([^d12]d)|(d[^d12])" />
<feedback>Step D is an all-day event, you can not combine it with other
steps on the same day.</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>