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
6294391a
Commit
6294391a
authored
Dec 25, 2016
by
qkeunebr
Browse files
Finalized the transformation mindmapping_to_opale for MCQ
parent
792ef775
Changes
2
Hide whitespace changes
Inline
Side-by-side
hdoc_to_opale/xsl/transformation2.xsl
View file @
6294391a
...
...
@@ -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>
...
...
mindmapping_to_hdoc/xslt/sect.xsl
View file @
6294391a
...
...
@@ -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')]"
...
...
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