[QTI] Response processing of text entry interaction
Jean Pierre Malrieu
jp.malrieu at free.fr
Wed Sep 17 18:16:16 BST 2008
Thanks for taking some time to give a "real" translation.
I had the same idea, but this xml is not valid: you cannot have a
sequence of several <responseIf> elements.
Do you see a workaround?
JPM
Le 17 sept. 08 à 15:35, Steve Lay a écrit :
> Jean Pierre Malrieu wrote:
>> So basically, if this is "not difficult" to you, an example of
>> translation would be welcome!
>
> So the responseProcessing for such an item might look like this (the
> SCORE value of 0 can be implied but I've added to make the code
> clearer and it does no harm):
>
> <responseProcessing>
> <setOutcomeValue identifier="SCORE">
> <baseValue baseType="float">0</baseValue>
> </setOutcomeValue>
> <responseCondition>
> <responseIf>
> <substring caseSensitive="false">
> <baseValue baseType="string">mecanisation</baseValue>
> <variable identifier="RESPONSE"/>
> </substring>
> <setOutcomeValue identifier="SCORE">
> <sum>
> <variable identifier="SCORE"/>
> <baseValue baseType="float">0.5</baseValue>
> </sum>
> </setOutcomeValue>
> </responseIf>
> <responseIf>
> <substring caseSensitive="false">
> <baseValue baseType="string">fertilization</baseValue>
> <variable identifier="RESPONSE"/>
> </substring>
> <setOutcomeValue identifier="SCORE">
> <sum>
> <variable identifier="SCORE"/>
> <baseValue baseType="float">0.5</baseValue>
> </sum>
> </setOutcomeValue>
> </responseIf>
> </responseCondition>
> </responseProcessing>
>
> To accommodate different spellings you might want to experiment with
> the patternMatch operator instead of the simple subString as this
> will enable things like:
>
> <patternMatch pattern=".*(mecanisation|mechanization).*">
> <variable identifier="RESPONSE"/>
> </patternMatch>
>
> ...assuming a single line of input.
>
> Steve
>
>
>
> _______________________________________________
> IMS-QTI mailing list
> IMS-QTI at lists.ucles.org.uk
> http://lists.ucles.org.uk/lists/listinfo/ims-qti
>
Tout ce que l'on apprend à un enfant, on l'empêche de l'inventer ou de
le découvrir.
J. Piaget
More information about the IMS-QTI
mailing list