Commit 6294391a authored by qkeunebr's avatar qkeunebr

Finalized the transformation mindmapping_to_opale for MCQ

parent 792ef775
......@@ -645,7 +645,6 @@
<sc:para>
<xsl:apply-templates select="./h:div[@data-hdoc-type = 'explanation-choice-correct']/h:p/text()"/>
</sc:para>
</op:txt>
</sc:choiceExplanation>
</sc:choice>
......
......@@ -276,6 +276,7 @@
<xsl:element name="p">
<xsl:value-of select="utc:remove-language(@TEXT)"/>
</xsl:element>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
......@@ -286,9 +287,29 @@
<xsl:element name="p">
<xsl:value-of select="utc:remove-language(@TEXT)"/>
</xsl:element>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<!-- Match the local explanation of an incorrect answer within a QCM -->
<xsl:template match="node[contains(@TEXT, '#explanation-choice-incorrect')]" priority="2">
<xsl:element name="div">
<xsl:attribute name="data-hdoc-type">explanation-choice-incorrect</xsl:attribute>
<xsl:element name="p">
<xsl:value-of select="utc:remove-language(@TEXT)"/>
</xsl:element>
</xsl:element>
</xsl:template>
<!-- Match the local explanation of a correct answer within a QCM -->
<xsl:template match="node[contains(@TEXT, '#explanation-choice-correct')]" priority="2">
<xsl:element name="div">
<xsl:attribute name="data-hdoc-type">explanation-choice-correct</xsl:attribute>
<xsl:element name="p">
<xsl:value-of select="utc:remove-language(@TEXT)"/>
</xsl:element>
</xsl:element>
</xsl:template>
<!-- Default behavior for intro and conclu nodes : do nothing -->
<xsl:template match="node[contains(@TEXT, '#intro')] | node[contains(@TEXT, '#conclu')]"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment