Commit 75b21313 authored by qkeunebr's avatar qkeunebr

Updated XSL for hdoc_to_opale to transform the local explanations within a MCQ

parent 8720195b
......@@ -617,6 +617,7 @@
<sc:choices>
<xsl:apply-templates select="./h:div[@data-hdoc-type = 'choice-correct' or @data-hdoc-type = 'choice-incorrect']"/>
</sc:choices>
<sc:globalExplanation>
......@@ -639,12 +640,27 @@
<xsl:template match="h:div[@data-hdoc-type = 'choice-correct']">
<sc:choice solution="checked">
<xsl:call-template name="choice" />
<sc:choiceExplanation>
<op:txt>
<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>
</xsl:template>
<xsl:template match="h:div[@data-hdoc-type = 'choice-incorrect']">
<sc:choice solution="unchecked">
<xsl:call-template name="choice" />
<sc:choiceExplanation>
<op:txt>
<sc:para>
<xsl:apply-templates select="./h:div[@data-hdoc-type = 'explanation-choice-incorrect']/h:p/text()"/>
</sc:para>
</op:txt>
</sc:choiceExplanation>
</sc:choice>
</xsl:template>
......
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