<lcCorrectResponse2>

The <lcCorrectResponse2> element in an assessment interaction indicates a correct response. This element replaces the <lcCorrectResponse> element in DITA 1.2.

In a <lcHotspot2> interaction, indicate the correct hotspot by setting the @value attribute of <lcCorrectResponse2> to the id of the "correct" area in the image map.

Content models

See appendix for information about this element in OASIS document type shells.

Inheritance

+ topic/data learningInteractionBase2-d/data learning2-d/lcCorrectResponse2

Example


   <!--True - False Interaction                    -->
   <lcTrueFalse2>
    <lcInteractionLabel2>True - False sun rising</lcInteractionLabel2>
    <lcQuestion2>On Earth, the sun rises in the West and sets in the East.</lcQuestion2>
    <lcAnswerOptionGroup2>
     <lcAnswerOption2>
      <lcAnswerContent2>True</lcAnswerContent2>
     </lcAnswerOption2>
     <lcAnswerOption2>
      <lcAnswerContent2>False</lcAnswerContent2>
      <lcCorrectResponse2/>
     </lcAnswerOption2>
    </lcAnswerOptionGroup2>
    <lcFeedbackIncorrect2>No, look to the East.</lcFeedbackIncorrect2>
    <lcFeedbackCorrect2>Yes, look to the East.</lcFeedbackCorrect2>
   </lcTrueFalse2>
  

Example with the <lcHotspot2> element

   <!--Hotspot Interaction    -->
   <lcHotspot2>
    <lcInteractionLabel2>Team logos hotspot</lcInteractionLabel2>
    <lcQuestion2>Which of the following is the logo for the Minnesota Twins?</lcQuestion2>
    <lcHotspotMap2>
     <image href="hotlogos.gif"/>
     <lcArea2 id="twins">
      <lcAreaShape2>rect</lcAreaShape2>
      <lcAreaCoords2>0,0,50,50</lcAreaCoords2>
      <lcCorrectResponse2 value="twins"/>
      <lcFeedback2>Yes.</lcFeedback2>
     </lcArea2>
     <lcArea2 id="giants">
      <lcAreaShape2>rect</lcAreaShape2>
      <lcAreaCoords2>50,0,100,50</lcAreaCoords2>
      <lcFeedback2>No.</lcFeedback2>
     </lcArea2>
     <lcArea2 id="cardinals">
      <lcAreaShape2>rect</lcAreaShape2>
      <lcAreaCoords2>0,50,50,100</lcAreaCoords2>
      <lcFeedback2>No.</lcFeedback2>
     </lcArea2>
     <lcArea2 id="orioles">
      <lcAreaShape2>rect</lcAreaShape2>
      <lcAreaCoords2>50,50,100,100</lcAreaCoords2>
      <lcFeedback2>No.</lcFeedback2>
     </lcArea2>
    </lcHotspotMap2>
   </lcHotspot2>

Attributes

The following attributes are available on this element: Universal attribute group, outputclass, and the attributes defined below.

@name
The name used to indicate this data. The default value for this attribute is "lcCorrectResponse2".
@value (REQUIRED)
The value. In an <lcHotspot2> interaction, set the value to the id corresponding to the correct area in the imagemap.