ZedAI XForms QTI Example 10
From zedwiki
Example 10
Note: This image is from a publicly-available site[1], so it may be easier to view the content there. To view the question, click the "Stop and Think" button (the orange "speech bubble" on the right hand side).
XForms
<html xmlns="http://www.w3.org/2002/06/xhtml2/"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:my="SYSTEM">
<head>
<title>XHTML2 + XForms Example 10</title>
<xforms:model>
<xforms:instance>
<my:worksheet>
<my:questions>
<my:q1 />
</my:questions>
</my:worksheet>
</xforms:instance>
<xforms:submission id="form1" action="page000.xml" method="put" ref="/my:worksheet" />
</xforms:model>
</head>
<body>
<h>Foreshadowing</h>
<p>Author's Craft</p>
<xforms:select1 ref="my:worksheet/my:questions/my:q1">
<xforms:label>Interpret the foreshadowing, or clues about what might happen next.
Choose the statements that best describes the kind of events the author is
foreshadowing in this paragraph.</xforms:label>
<xforms:item>
<xforms:label>The paragraph suggests that something exciting will happen to
Buck.</xforms:label>
<xforms:value>A</xforms:value>
</xforms:item>
<xforms:item>
<xforms:label>The paragraph suggests that men in the gold rush will be making
a lot of money.</xforms:label>
<xforms:value>B</xforms:value>
</xforms:item>
<xforms:item>
<xforms:label>The paragraph suggests that Buck will be in danger and that his
life will change for the worse.</xforms:label>
<xforms:value>C</xforms:value>
</xforms:item>
</xforms:select1>
<xforms:trigger>
<xforms:label>Done</xforms:label>
<xforms:message level="modeless" if="my:worksheet/my:questions/my:q1 = 'A'"
ev:event="DOMActivate">
<section>
<h>Check Your Work</h>
<p>Yes, there is excitement here, but is that the main message? Click on
the resources button (plus sign) and read about sled dogs. It will
help you understand the foreshadowing better. Then try again!</p>
</section>
</xforms:message>
<xforms:message level="modeless" if="my:worksheet/my:questions/my:q1 = 'B'"
ev:event="DOMActivate">
<section>
<h>Check Your Work</h>
<p>The gold rush is 'booming,' but is the author really focusing on that?
Click on Monty for strategies to help you think about it again.</p>
</section>
</xforms:message>
<xforms:message level="modeless" if="my:worksheet/my:questions/my:q1 = 'C'"
ev:event="DOMActivate">
<section>
<h>Good Work!</h>
<p>Great! The phrase 'trouble was brewing' tells us that things might
not go well for Buck.</p>
</section>
</xforms:message>
</xforms:trigger>
</body>
</html>
QTI
<html xmlns="http://www.w3.org/2002/06/xhtml2/"
xmlns:qti="http://www.imsglobal.org/xsd/imsqti_v2p0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:my="SYSTEM">
<head>
<title>XHTML2 + QTI Example 10</title>
</head>
<body>
<h>Foreshadowing</h>
<p>Author's Craft</p>
<qti:assessmentItem identifier="feedback" title="Question 10" adaptive="false"
timeDependent="false">
<qti:responseDeclaration identifier="q1" cardinality="single"/>
<qti:outcomeDeclaration identifier="fb" cardinality="single"/>
<qti:itemBody>
<qti:choiceInteraction responseIdentifier="q1" shuffle="false"
maxChoices="1">
<qti:prompt>Interpret the foreshadowing, or clues about what might
happen next. Choose the statements that best describes the kind
of events the author is foreshadowing in this paragraph.
</qti:prompt>
<qti:simpleChoice identifier="A">The paragraph suggests that
something exciting will happen to Buck.</qti:simpleChoice>
<qti:simpleChoice identifier="B">The paragraph suggests that men in
the gold rush will be making a lot of money.</qti:simpleChoice>
<qti:simpleChoice identifier="C">The paragraph suggests that Buck
will be in danger and that his life will change for the worse.
</qti:simpleChoice>
</qti:choiceInteraction>
</qti:itemBody>
<qti:modalFeedback outcomeIdentifier="fb" identifier="A" showHide="show">
<qti:h1>Check Your Work</qti:h1>
<qti:p>Yes, there is excitement here, but is that the main message? Click on
the resources button (plus sign) and read about sled dogs. It will
help you understand the foreshadowing better. Then try again!</qti:p>
</qti:modalFeedback>
<qti:modalFeedback outcomeIdentifier="fb" identifier="B" showHide="show">
<qti:h1>Check Your Work</qti:h1>
<qti:p>The gold rush is 'booming,' but is the author really focusing on that?
Click on Monty for strategies to help you think about it again.</qti:p>
</qti:modalFeedback>
<qti:modalFeedback outcomeIdentifier="fb" identifier="C" showHide="show">
<qti:h1>Good Work!</qti:h1>
<qti:p>Great! The phrase 'trouble was brewing' tells us that things might
not go well for Buck.</qti:p>
</qti:modalFeedback>
</qti:assessmentItem>
</body>
</html>

