Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hdoc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Stephane Crozat
hdoc
Commits
6294391a
Commit
6294391a
authored
Dec 25, 2016
by
qkeunebr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finalized the transformation mindmapping_to_opale for MCQ
parent
792ef775
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
hdoc_to_opale/xsl/transformation2.xsl
hdoc_to_opale/xsl/transformation2.xsl
+0
-1
mindmapping_to_hdoc/xslt/sect.xsl
mindmapping_to_hdoc/xslt/sect.xsl
+21
-0
No files found.
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