![]() |
IMS Question and Test Interoperability XML BindingVersion 2.1 Public Draft (revision 2) Specification |
Copyright © 2006 IMS Global Learning Consortium, Inc.
All Rights Reserved.
The IMS Logo is a registered trademark of IMS/GLC.
Document Name: IMS Question and Test Interoperability XML Binding
Revision: 8 June 2006
| Date Issued: |
8 June 2006 |
| Latest version: |
http://www.imsglobal.org/question/qtiv2p1pd2/imsqti_bindv2p1pd2.html |
| Register comments or implementations: |
http://www.imsglobal.org/developers/ims/imsforum/categories.cfm?catid=23 |
| IPR and Distribution Notices Recipients of this document are requested to submit, with their comments, notification of any relevant patent claims or other intellectual property rights of which they may be aware that might be infringed by any implementation of the specification set forth in this document, and to provide supporting documentation. IMS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on IMS's procedures with respect to rights in IMS specifications can be found at the IMS Intellectual Property Rights web page: http://www.imsglobal.org/question/qtiv2p1pd2/qtiv2p1pd2speclicense.html. Copyright © IMS Global Learning Consortium 2006. All Rights Reserved. If you wish to distribute this document or use this document to implement a product or service, you must complete a valid license registration with IMS and receive an email from IMS granting the license. To register, follow the instructions on the IMS web site: http://www.imsglobal.org/specificationdownload.cfm. This document may be copied and furnished to others by Licensee organizations registered on the IMS web site provided that the above copyright notice and this paragraph are included on all such copies. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to IMS, except as needed for the purpose of developing IMS specifications, under the auspices of a chartered IMS work group. Use of this specification to develop products or services is governed by the license with IMS found on the IMS web site: http://www.imsglobal.org/specificationlicense.html. The limited permissions granted above are perpetual and will not be revoked by IMS or its successors or assigns. THIS SPECIFICATION IS BEING OFFERED WITHOUT ANY WARRANTY WHATSOEVER, AND IN PARTICULAR, ANY WARRANTY OF NONINFRINGEMENT IS EXPRESSLY DISCLAIMED. ANY USE OF THIS SPECIFICATION SHALL BE MADE ENTIRELY AT THE IMPLEMENTER'S OWN RISK, AND NEITHER THE CONSORTIUM, NOR ANY OF ITS MEMBERS OR SUBMITTERS, SHALL HAVE ANY LIABILITY WHATSOEVER TO ANY IMPLEMENTER OR THIRD PARTY FOR ANY DAMAGES OF ANY NATURE WHATSOEVER, DIRECTLY OR INDIRECTLY, ARISING FROM THE USE OF THIS SPECIFICATION. |
|
Elements defined by [XHTML] are not imported directly from an external schema but are instead re-declared as part of the QTI schema. At the time of writing the use of schema for XHTML is at an experimental stage. However, the math element defined by [MathML] is imported from the MathML schema. Note that the use of the MathML schema excludes the use of the entity declarations for mathematical symbols defined in the original MathML DTD and therefore these should not be used for referring to characters within QTI document instances.
Simple datatypes are bound
directly to the closest equivalent type in XML Schema, for example, boolean
is bound directly to xsd:boolean.
Enumerations are bound as enumerated restrictions of xsd:NMTOKEN.
The information model says nothing about how simple types are
to be represented in text. For example, the boolean
type is an abstract boolean which can be either logically true or
logically false. By binding these simple types using XML Schema they
automatically inherit the lexical bindings described there. A lexical
binding is just a set of rules for representing the abstract type as a
run of text characters. For example, XML Schema allows the following
strings to represent the values of xsd:boolean: "true",
"false", "1" and "0".
XML DTDs have a smaller vocabulary for defining simple types
and is therefore not able to impose the same lexical constraints as the
schema. Applications that generate QTI document instances that validate
against the DTD must still use the same lexical bindings defined by
schema even though these will not be checked automatically by the XML
parser. For example, in the DTD the boolean
type is bound only to NMTOKEN and therefore the XML parser will permit
many more strings than the four listed above. However, strings such as "yes"
and "no" are still forbidden.
The following sections spell out the bindings for the simple types defined in the information model. Simple types are defined as datatypes in the information model and are used as the types of attributes (which are bound to attributes in the XML representation) or as the types of simple aggregations (which are bound to elements without attributes in the XML representation). Where the information model indicates multiple occurrences of a simple type these are bound using space separation of individual values in attributes or multiple instances of the element in the case of aggregations.
Bound using the XML schema boolean. The legal literals are defined there to be:
true
false
1
0
The coords datatype is bound as a single string value which is obtained by concatenating a list of length values using comma as the list separator. Note that the use of comma is for compatibility with [XHTML]. Example values:
10,100,50,200
50,60,50%
60,50,110,100,60,150,10,150,60,50
50%,50%,20,25
Bound using the XML schema date type. The legal literals are defined as a subset of [ISO8601]. Note that only extended calendar forms are supported (forms with hyphen field delimiters) and that all components of the date must be specified. The information model value space for the date type does not include time zone information or expanded forms (negative dates and dates beyond 9999) so these are excluded from the binding. Example values:
2006-03-22
Bound using the XML schema dateTime type. Expanded forms should not be used. Example values:
2006-03-22T12:33:25TZ
2006-03-022T12:33:25+01:00
Bound using the XML schema double type. Example values:
3600.0
5400.0
7.2E+02
1
3.14
3E+08
A
choice4
correct
Bound using the XML schema int type. Example values:
1
+3
-4
Bound using the XML schema language type. Languages are represented according to the conventions of [RFC1766] which itself has been made obsolete by [RFC3066]. Example values:
en-US
en-GB
en
10
50%
Represented as strings conforming to the definition of type "/" subtype in [RFC2045]. Example values:
text/plain
image/gif
application/octet-stream
Bound using the XML schema string type.
Bound using a simple restriction of the XML schema string type.
Bound using the XML schema anyURI type. Example values:
http://www.example.com/
images/icon.gif
mailto:user@example.com
See Binding Values of Item Variables.
This specification defines a model for maintaining the values of item variables during a test or item session. Item variables may have single values, or may be containers for multiple values. In each case, the single values are represented using instances of the class value in declarations and reports, the class baseValue when used in expressions and the datatype valueType when given as an attribute value. The following discussion applies to all three contexts.
Each value instance can contain a single value of any of the baseTypes supported by the specification. The content of a <value> element is therefore bound to the general string type in XML schema. However, the element content must satisfy the binding for the associated baseType as described below.
As for the simple type boolean.
A B
choice5 choice1
apple fruit
carrot vegetable
The number of seconds, expressed as a floating point number and bound according to the rules for the simple type float.
Files are represented using MIME message streams, including the specification of headers for providing information about content type and encoding. For more information see [RFC2045]. Example value:
Content-Type: image/gif; name="works.gif" ; x-mac-type="47494666"
; x-mac-creator="4A565752"
Content-Disposition: attachment; filename="works.gif"
Content-Transfer-Encoding: base64
R0lGODlhGgAXAPcAAP//////zP//mf//Zv//M///AP/M///MzP/Mmf/MZv/MM//MAP+Z
//+ZzP+Zmf+ZZv+ZM/+ZAP9m//9mzP9mmf9mZv9mM/9mAP8z//8zzP8zmf8zZv8zM/8z
AP8A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CBCCUJc6CRoPu5Om06EOqTKdS9dnwqlapWLka9Dr1aNOq
KbFppWoTKdqxatdKnZsU7tq2bMNe1Gixr9+/Fg8CHkwYoeHDiBMfBAggIAA7
As for the simple type identifier.
As for the simple type integer.
A space separated list of two identifier values.
A B
choice5 choice1
apple pear
carrot potato
10 50
32 16
As for the simple type string.
Attributes:
Elements:
Attributes:
Elements:
Attributes:
Elements:
Description: Profile flag for the adaptive items feature.
Attributes:
Elements:
Description: An expression that performs a boolean and.
Elements:
Description: An expression for testing groups of boolean sub-expressions.
Attributes:
Elements:
Description: Defines an area for mapping a set of points onto a single real number.
Attributes:
Description: Defines a mapping from the set of points to real numbers using areas.
Attributes:
Elements:
Description: The root element for QTI items
Can be the root element of an XML document.
Description: The element used to incorporate an item into a test.
Attributes:
Elements:
Can be the root element of an XML document.
Description: A section of a test.
See:
Attributes:
Elements:
Description: The root element for QTI tests.
Can be the root element of an XML document.
Description: The group of elements that are used in association-type interactions.
Group members: <associableHotspot>, <gap>, <gapImg>, <gapText>, <simpleAssociableChoice>
Context:
Not applicable.
Description: An element that defines a hot area of a graphic for association tasks.
Attributes:
Description: Interaction in which the candidate must identify pairs of choices from a single set.
Attributes:
Elements:
Group members: <address>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <p>, <pre>
Context:
See:
Description: A group of empty elements that behave like spans of text.
Context:
See:
Description: Defined by XHTML.
Attributes:
Elements:
Description: An element for describing the capabilities or requirements of an item-bank system.
Can be the root element of an XML document.
One of the following symbolic values:
Description: A simple expression returning a constant value of the given base-type.
Attributes:
Description: Defined by XHTML.
Attributes:
Elements:
Description: A group of elements that provide structure to the item body.
Group members: <address>, <associateInteraction>, <blockquote>, <choiceInteraction>, <customInteraction>, <div>, <dl>, <drawingInteraction>, <extendedTextInteraction>, <feedbackBlock>, <gapMatchInteraction>, <graphicAssociateInteraction>, <graphicGapMatchInteraction>, <graphicOrderInteraction>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <hotspotInteraction>, <hottextInteraction>, <hr>, <m:math>, <matchInteraction>, <mediaInteraction>, <ol>, <orderInteraction>, <p>, <positionObjectStage>, <pre>, <rubricBlock>, <selectPointInteraction>, <sliderInteraction>, <table>, <templateBlock>, <ul>, <uploadInteraction>
Context:
Description: The group of interactions which have inherent structure of their own.
Group members: <associateInteraction>, <choiceInteraction>, <drawingInteraction>, <extendedTextInteraction>, <gapMatchInteraction>, <graphicAssociateInteraction>, <graphicGapMatchInteraction>, <graphicOrderInteraction>, <hotspotInteraction>, <hottextInteraction>, <matchInteraction>, <mediaInteraction>, <orderInteraction>, <selectPointInteraction>, <sliderInteraction>, <uploadInteraction>
Context:
See:
Description: A group of elements that provides structure excluding interactions.
Group members: <address>, <blockquote>, <div>, <dl>, <feedbackBlock>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <hr>, <m:math>, <ol>, <p>, <pre>, <rubricBlock>, <table>, <templateBlock>, <ul>
Context:
See:
Attributes:
Elements:
Group members: <a>, <abbr>, <acronym>, <address>, <associableHotspot>, <associateInteraction>, <b>, <big>, <blockquote>, <br>, <caption>, <choiceInteraction>, <cite>, <code>, <col>, <colgroup>, <customInteraction>, <dd>, <dfn>, <div>, <dl>, <drawingInteraction>, <dt>, <em>, <endAttemptInteraction>, <extendedTextInteraction>, <feedbackBlock>, <feedbackInline>, <gap>, <gapImg>, <gapMatchInteraction>, <gapText>, <graphicAssociateInteraction>, <graphicGapMatchInteraction>, <graphicOrderInteraction>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <hotspotChoice>, <hotspotInteraction>, <hottext>, <hottextInteraction>, <hr>, <i>, <img>, <inlineChoice>, <inlineChoiceInteraction>, <itemBody>, <kbd>, <li>, <matchInteraction>, <mediaInteraction>, <object>, <ol>, <orderInteraction>, <p>, <positionObjectInteraction>, <pre>, <printedVariable>, <prompt>, <q>, <rubricBlock>, <samp>, <selectPointInteraction>, <simpleAssociableChoice>, <simpleChoice>, <sliderInteraction>, <small>, <span>, <strong>, <sub>, <sup>, <table>, <tbody>, <td>, <templateBlock>, <templateInline>, <textEntryInteraction>, <tfoot>, <th>, <thead>, <tr>, <tt>, <ul>, <uploadInteraction>, <var>
Context:
Not applicable.
A trivial restriction of xsd:boolean.
Attributes:
Attributes:
Elements:
Elements:
Description: Defined by XHTML.
Attributes:
Elements:
One of the following symbolic values:
Description: A categorized statistic, such as a score-conversion table, expressed as a mapping.
Attributes:
Elements:
Group members: <associableHotspot>, <gap>, <gapImg>, <gapText>, <hotspotChoice>, <hottext>, <inlineChoice>, <simpleAssociableChoice>, <simpleChoice>
Context:
Not applicable.
Description: The element that represents simple multiple choice and multiple-response interactions.
Attributes:
Elements:
Description: Defined by XHTML.
Attributes:
Elements:
Description: Defined by XHTML.
Attributes:
Elements:
Description: Defined by XHTML.
Attributes:
Description: Defined by XHTML.
Attributes:
Elements:
Description: Profile flag for the composite items feature.
Description: An expression that returns the size of a container.
Elements:
Description: An expression that tests a container to determine if it contains another.
Elements:
Can be the root element of an XML document.
Elements:
A trivial restriction of xsd:string.
Description: A simple expression returning the correct value associated with a response variable.
Attributes:
Description: Declares the (or a) correct response for a response variable.
Attributes:
Elements:
Attributes:
Elements:
Description: An element allowing externally defined expressions to be used.
Attributes:
Elements:
A trivial restriction of xsd:date.
A trivial restriction of xsd:dateTime.
Description: Defined by XHTML.
Attributes:
Elements:
Description: A simple expression returning the default value of an item variable.
Attributes:
Description: Defines the default value for an item variable.
Attributes:
Elements:
Elements:
Description: Defined by XHTML.
Attributes:
Elements:
Description: Defined by XHTML.
Attributes:
Elements:
Description: An expression for dividing one number by another.
Elements:
Description: Defined by XHTML.
Attributes:
Elements:
Description: Elements that can appear within <dl>.
Context:
Description: Interaction in which the candidate draws freely on a given backdrop image.
Attributes:
Elements:
Description: Defined by XHTML.
Attributes:
Elements:
A trivial restriction of xsd:double.
Description: An expression for testing the greater-than-or-equal relation between two durations.
Elements:
Description: An expression for testing the less-than relation between two durations.
Elements:
Attributes:
Elements:
Description: A special interaction for providing alternative ways to end an attempt.
Attributes:
Description: An expression for testing two numeric values for equality.
Attributes:
Elements:
Description: An expression for testing two numeric values for equality after rounding.
Attributes:
Elements:
Description: A response rule that terminates response processing immediately.
Description: A template rule that terminates template processing immediately.
Group members: <and>, <anyN>, <baseValue>, <containerSize>, <contains>, <correct>, <customOperator>, <default>, <delete>, <divide>, <durationGTE>, <durationLT>, <equal>, <equalRounded>, <fieldValue>, <gt>, <gte>, <index>, <inside>, <integerDivide>, <integerModulus>, <integerToFloat>, <isNull>, <lt>, <lte>, <mapResponse>, <mapResponsePoint>, <match>, <member>, <multiple>, <not>, <null>, <numberCorrect>, <numberIncorrect>, <numberPresented>, <numberResponded>, <numberSelected>, <or>, <ordered>, <outcomeMaximum>, <outcomeMinimum>, <patternMatch>, <power>, <product>, <random>, <randomFloat>, <randomInteger>, <round>, <stringMatch>, <substring>, <subtract>, <sum>, <testVariables>, <truncate>, <variable>
Context:
Description: Interaction that allows the candidate to supply an extended free-text response.
Attributes:
Elements:
Attributes:
Elements:
Group members: <feedbackBlock>, <feedbackInline>
Context:
Not applicable.
Attributes:
Elements:
Description: Profile flag for the integrated feedback feature.
Description: Profile flag for the modal feedback feature.
Content: a value of type feedbackType.Type.
One of the following symbolic values:
Description: An expression that extracts a single field value from a record container.
Attributes:
Elements:
A trivial restriction of xsd:double.
A trivial restriction of xsd:string.
Group members: <a>, <abbr>, <acronym>, <address>, <associateInteraction>, <b>, <big>, <blockquote>, <br>, <choiceInteraction>, <cite>, <code>, <customInteraction>, <dfn>, <div>, <dl>, <drawingInteraction>, <em>, <endAttemptInteraction>, <extendedTextInteraction>, <feedbackBlock>, <feedbackInline>, <gapMatchInteraction>, <graphicAssociateInteraction>, <graphicGapMatchInteraction>, <graphicOrderInteraction>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <hotspotInteraction>, <hottext>, <hottextInteraction>, <hr>, <i>, <img>, <inlineChoiceInteraction>, <kbd>, <m:math>, <matchInteraction>, <mediaInteraction>, <object>, <ol>, <orderInteraction>, <p>, <pre>, <printedVariable>, <q>, <rubricBlock>, <samp>, <selectPointInteraction>, <sliderInteraction>, <small>, <span>, <strong>, <sub>, <sup>, <table>, <templateBlock>, <templateInline>, <textEntryInteraction>, <tt>, <ul>, <uploadInteraction>, <var>, <xi:include>
Context:
See:
Group members: <a>, <abbr>, <acronym>, <address>, <b>, <big>, <blockquote>, <br>, <cite>, <code>, <dfn>, <div>, <dl>, <em>, <feedbackBlock>, <feedbackInline>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <hottext>, <hr>, <i>, <img>, <kbd>, <m:math>, <object>, <ol>, <p>, <pre>, <printedVariable>, <q>, <rubricBlock>, <samp>, <small>, <span>, <strong>, <sub>, <sup>, <table>, <templateBlock>, <templateInline>, <tt>, <ul>, <var>
Context:
See:
Description: Defines the position of a gap in the text for gap-filling tasks.
Attributes:
Description: A group of elements that can be used to define choices for gap-filling tasks.
Group members: <gapImg>, <gapText>
Context:
Description: An image that can be used to fill a gap.
See:
Attributes:
Elements:
Attributes:
Elements:
Description: A simple run of text that can be used to fill a gap.
Attributes:
Elements:
Attributes:
Elements:
Attributes:
Elements:
Description: A group of elements for describing image-based tasks.
Group members: <graphicAssociateInteraction>, <graphicGapMatchInteraction>, <graphicOrderInteraction>, <hotspotInteraction>, <selectPointInteraction>
Context:
See:
Description: Interaction in which the candidate orders a set of predefined hotspots on an image.
Attributes:
Elements:
Description: An expression for testing the greater-than relation between two numbers.
Elements:
Description: An expression for testing the greater-than-or-equal relation between two numbers.
Elements:
Description: Defined by XHTML.
Attributes: