<?xml version="1.0" encoding="UTF-8"?>
<question type="dragdrop" width="670" height="450">
<text>This is the text giving the question to the student and explaining him
what to do.
</text>
<!--
matchImg is the (background) image that the draggables are dragged on.
Attach an image to the node using the upload functionality and de-select the
"list" option for this file to hide it from the user.
Text inside the <hotspot> tag is used as hovertip for that hotspot.
-->
<matchImg src="[attachurl:1]">
<!-- hotspots that are checked to see if they contain draggables. -->
<hotspot id="h1" shape="rect" coords="2,91,119,124">This is a rectangle hotspot</hotspot>
<hotspot id="h2" shape="circle" coords="162,182,70">This is a circle hotspot</hotspot>
<hotspot id="h3" shape="poly" coords="142,46,185,81,128,142,83,84">This is an polygon hotspot.</hotspot>
<!--
draggables are the images that are dragged to hotspots.
They can either contain any html or a single image.
Image example: <draggable identifier="d1" src="[attachurl:text_damp.png]" />
Html example: <draggable identifier="d2">Drag Me!</draggable>
-->
<draggable identifier="d1">Drag me!</draggable>
<draggable identifier="d2">Draggable with a <span>Tooltip</span><span class="hovertip">This is a tooltip!</span></draggable>
</matchImg>
<hint mintries="1">
This is the first hint, it comes up after the first incorrect answer.
</hint>
<hint mintries="2" maxtries="3">
This is the second hint, it comes up after the second and third incorrect
answer and disappears again at the fourth.
</hint>
<hint mintries="3">
You can have as many hints as you like.
</hint>
<!--
Mappings are used to check the answer.
-->
<mapping correct="1">
<combination hotspot="h1" draggable="d1" />
<combination hotspot="h2" draggable="d2" />
<combination hotspot="h3" draggable="d3" />
<feedback>
This feedback appears when the student puts draggable d1 on hotspot h1,
draggable d2 on hotspot h2 and draggable d3 on hotspot h3. This is
considered to be the correct answer.
</feedback>
</mapping>
<mapping correct="0">
<combination hotspot="h2" draggablepattern="d3" />
<feedback>
You have draggable d3 on hotspot h2.
</feedback>
</mapping>
<mapping correct="0">
<combination hotspot="h." draggable="d[0-9]" />
<feedback>
You have at least one draggable on one hotspot.
</feedback>
</mapping>
<mapping correct="0">
<combination hotspot="h1" draggablepattern="d[0-9]" />
<feedback>
You have at least one draggable on hotspot "h1".
</feedback>
</mapping>
<mapping correct="0">
<combination hotspot="h." draggable="d1" />
<feedback>
You have draggable d1 on a hotspot.
</feedback>
</mapping>
</question>