Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
75b21313
Commit
75b21313
authored
Dec 22, 2016
by
qkeunebr
Browse files
Updated XSL for hdoc_to_opale to transform the local explanations within a MCQ
parent
8720195b
Changes
1
Show whitespace changes
Inline
Side-by-side
hdoc_to_opale/xsl/transformation2.xsl
View file @
75b21313
...
@@ -617,6 +617,7 @@
...
@@ -617,6 +617,7 @@
<sc:choices>
<sc:choices>
<xsl:apply-templates
select=
"./h:div[@data-hdoc-type = 'choice-correct' or @data-hdoc-type = 'choice-incorrect']"
/>
<xsl:apply-templates
select=
"./h:div[@data-hdoc-type = 'choice-correct' or @data-hdoc-type = 'choice-incorrect']"
/>
</sc:choices>
</sc:choices>
<sc:globalExplanation>
<sc:globalExplanation>
...
@@ -639,12 +640,27 @@
...
@@ -639,12 +640,27 @@
<xsl:template
match=
"h:div[@data-hdoc-type = 'choice-correct']"
>
<xsl:template
match=
"h:div[@data-hdoc-type = 'choice-correct']"
>
<sc:choice
solution=
"checked"
>
<sc:choice
solution=
"checked"
>
<xsl:call-template
name=
"choice"
/>
<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>
</sc:choice>
</xsl:template>
</xsl:template>
<xsl:template
match=
"h:div[@data-hdoc-type = 'choice-incorrect']"
>
<xsl:template
match=
"h:div[@data-hdoc-type = 'choice-incorrect']"
>
<sc:choice
solution=
"unchecked"
>
<sc:choice
solution=
"unchecked"
>
<xsl:call-template
name=
"choice"
/>
<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>
</sc:choice>
</xsl:template>
</xsl:template>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment