我正在使用多方答案复选框问题进行资格测试。
<AnswerSpecification>
<SelectionAnswer>
<StyleSuggestion>checkbox</StyleSuggestion>
<Selections>
<Selection>
<SelectionIdentifier>grammar</SelectionIdentifier>
<Text>Bad grammar.</Text>
</Selection>
<Selection>
<SelectionIdentifier>spelling</SelectionIdentifier>
<Text>Bad spelling</Text>
</Selection>
<Selection>
<SelectionIdentifier>punctuation</SelectionIdentifier>
<Text>Bad punctuation</Text>
</Selection>
...
</Selections>
</SelectionAnswer>
</AnswerSpecification>
问题显示很好,但是,AnswerKey.xml验证,但无法正常工作。
<Question>
<QuestionIdentifier>my_question_id</QuestionIdentifier>
<AnswerOption>
<SelectionIdentifier>grammar</SelectionIdentifier>
<AnswerScore>5</AnswerScore>
</AnswerOption>
<AnswerOption>
<SelectionIdentifier>punctuation</SelectionIdentifier>
<AnswerScore>5</AnswerScore>
</AnswerOption>
</Question>
如果工作人员同时选择“语法”和“标点符号”,则最终得分应为10,但结果为零。
其他人有这个问题吗?
谢谢,
琳达
答案 0 :(得分:1)
我认为您必须将两个答案一起指定为第三个响应模式:
<Question>
<QuestionIdentifier>my_question_id</QuestionIdentifier>
<AnswerOption>
<SelectionIdentifier>grammar</SelectionIdentifier>
<AnswerScore>5</AnswerScore>
</AnswerOption>
<AnswerOption>
<SelectionIdentifier>punctuation</SelectionIdentifier>
<AnswerScore>5</AnswerScore>
</AnswerOption>
<AnswerOption>
<SelectionIdentifier>grammar</SelectionIdentifier>
<SelectionIdentifier>punctuation</SelectionIdentifier>
<AnswerScore>10</AnswerScore>
</AnswerOption>
</Question>
答案 1 :(得分:0)
或者,您也可以将每个复选框选项设置为自己唯一的问题&#34;然后您不必担心指定每个可能的排列。