ZedAI XForms QTI Example 9

From zedwiki

Jump to: navigation, search

Example 9

Image:Example9.png

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 09</title>
    <xforms:model>
      <xforms:instance>
        <my:worksheet>
          <my:questions>
            <my:q1>
              <my:item />
            </my:q1>
          </my:questions>
        </my:worksheet>
      </xforms:instance>
      <!--The following constraint attribute forces the number of selections to 
        be 4.-->
      <xforms:bind nodeset="my:q1/my:item" constraint="count(my:q1/my:item) = 4"/>
      <xforms:submission id="form1" action="page000.xml" method="put" ref="/my:worksheet" />
    </xforms:model>
  </head>
  <body>
    <h>Example 9</h>
    <!--Unrelated content is not included-->
    <xforms:select ref="my:worksheet/my:questions/my:q1/my:item">
      <xforms:label>Choose the four most important points to include in a 
        <strong>summary</strong> of this passage.</xforms:label>
      <xforms:item>
        <xforms:label>Wood swallowed the fire.</xforms:label>
        <xforms:value>A</xforms:value>
      </xforms:item>
      <xforms:item>
        <xforms:label>Wood wouldn't give back the fire so the Fire Beings 
          went home.</xforms:label>
        <xforms:value>B</xforms:value>
      </xforms:item>
      <xforms:item>
        <xforms:label>Coyote figured out how to get fire from Wood.
          </xforms:label>
        <xforms:value>C</xforms:value>
      </xforms:item>
      <xforms:item>
        <xforms:label>The Humans lived in the village.</xforms:label>
        <xforms:value>D</xforms:value>
      </xforms:item>
      <xforms:item>
        <xforms:label>The Humans had fire so they would be safe during 
          the winter.</xforms:label>
        <xforms:value>E</xforms:value>
      </xforms:item>
      <xforms:item>
        <xforms:label>The Humans enjoyed the summertime.</xforms:label>
        <xforms:value>F</xforms:value>
      </xforms:item>
    </xforms:select>
    <xforms:submit submission="form1">
      <xforms:label>Save</xforms:label>
    </xforms:submit>
  </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 09</title>
  </head>
  <body>
    <h>Example 9</h>
    <!--Unrelated content is not included-->
    <qti:assessmentItem identifier="choiceMultiple" title="Question 1" adaptive="false" 
      timeDependent="false">
      <qti:responseDeclaration identifier="q1" cardinality="multiple"/>
      <qti:itemBody>
        <qti:choiceInteraction responseIdentifier="q1" shuffle="false" maxChoices="4">
          <qti:prompt>Choose the four most important points to include in a 
            <qti:b>summary</qti:b> of this passage.</qti:prompt>
          <qti:simpleChoice identifier="A">Wood swallowed the fire.
            </qti:simpleChoice>
          <qti:simpleChoice identifier="B">Wood wouldn't give back the fire so the 
            Fire Beings went home.</qti:simpleChoice>
          <qti:simpleChoice identifier="C">Coyote figured out how to get fire from 
            Wood.</qti:simpleChoice>
          <qti:simpleChoice identifier="D">The Humans lived in the village.
            </qti:simpleChoice>
          <qti:simpleChoice identifier="E">The Humans had fire so they would be 
            safe during the winter.</qti:simpleChoice>
          <qti:simpleChoice identifier="F">The Humans enjoyed the summertime.
            </qti:simpleChoice>
        </qti:choiceInteraction>
      </qti:itemBody>
    </qti:assessmentItem>
  </body>
</html>
Personal tools