From zedwiki
Example 2
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 01</title>
<xforms:model>
<xforms:instance>
<my:worksheet>
<my:questions>
<my:q1 />
<my:q2 />
<my:q3 />
</my:questions>
</my:worksheet>
</xforms:instance>
<xforms:submission action="page008.xml" method="put" ref="/my:worksheet" />
</xforms:model>
</head>
<body>
<h>Multiplication Problems</h>
<p>For each of these story problems, write an equation and your solution.</p>
<ol>
<li>
<xforms:input ref="my:worksheet/my:questions/my:q1">
<xforms:label>There are 2 people who want to eat 3 apples. How
many apples are needed?</xforms:label>
</xforms:input>
</li>
<li>
<xforms:input ref="my:worksheet/my:questions/my:q2">
<xforms:label>I have 2 pies. Each pie can be cut into 10 pieces.
How many pieces are there?</xforms:label>
</xforms:input>
</li>
</ol>
<section>
<h>Review Question</h>
<ol>
<!--Not sure how one should encode this question. Technically the prefacing text is
part of the question, however, <label> only allows PCDATA, which removes the
ability for multiple paragraphs.-->
<li>Select the equation that answers the question.
<xforms:select1 ref="my:worksheet/my:questions/my:q4">
<xforms:label>Soda comes in packs of 6 cans. How many cans are there if I
have 3 packs?</xforms:label>
<xforms:item>
<xforms:label>A. 18 × 3 = ?</xforms:label>
<xforms:value>A</xforms:value>
</xforms:item>
<xforms:item>
<xforms:label>B. 3 × 6 = ?</xforms:label>
<xforms:value>B</xforms:value>
</xforms:item>
<xforms:item>
<xforms:label>C. 3 × 3 = ?</xforms:label>
<xforms:value>C</xforms:value>
</xforms:item>
<xforms:item>
<xforms:label>D. 6 × 3 = ?</xforms:label>
<xforms:value>D</xforms:value>
</xforms:item>
</xforms:select1>
</li>
</ol>
</section>
</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 01</title>
</head>
<body>
<h>Multiplication Problems</h>
<p>For each of these story problems, write an equation and your solution.</p>
<ol>
<li>
<qti:assessmentItem identifier="extendedText" title="Question 1" adaptive="false"
timeDependent="false">
<qti:responseDeclaration identifier="q1" cardinality="single"/>
<qti:itemBody>
<qti:p>There are 2 people who want to eat 3 apples. How many apples are
needed?</qti:p>
<qti:extendedTextInteraction responseIdentifier="q1"/>
</qti:itemBody>
</qti:assessmentItem>
</li>
<li>
<qti:assessmentItem identifier="extendedText" title="Question 2" adaptive="false"
timeDependent="false">
<qti:responseDeclaration identifier="q2" cardinality="single"/>
<qti:itemBody>
<qti:p>I have 2 pies. Each pie can be cut into 10 pieces. How many pieces
are there?</qti:p>
<qti:extendedTextInteraction responseIdentifier="q2"/>
</qti:itemBody>
</qti:assessmentItem>
</li>
</ol>
<section>
<h>Review Question</h>
<ol>
<li>
<!--The order of text has been changed in this instance. (First paragraph
has been moved to the <prompt> section.)-->
<qti:assessmentItem identifier="choice" title="Question 4" adaptive="false"
timeDependent="false">
<qti:responseDeclaration identifier="q4" cardinality="single"/>
<qti:itemBody>
<qti:p>Soda comes in packs of 6 cans. How many cans are there if
I have 3 packs?</qti:p>
<qti:choiceInteraction responseIdentifier="q4" shuffle="false"
maxChoices="1">
<qti:prompt>Select the equation that answers the question.
</qti:prompt>
<qti:simpleChoice identifier="A">18 × 3 = ?
</qti:simpleChoice>
<qti:simpleChoice identifier="B">3 × 6 = ?
</qti:simpleChoice>
<qti:simpleChoice identifier="C">3 × 3 = ?
</qti:simpleChoice>
<qti:simpleChoice identifier="D">6 × 3 = ?
</qti:simpleChoice>
</qti:choiceInteraction>
</qti:itemBody>
</qti:assessmentItem>
</li>
</ol>
</section>
</body>
</html>