Commit c0f99887 authored by Neveux Anais's avatar Neveux Anais

Add method and remind on hdoc_to_opale and hdoc schemas, add remind and method on canoprof_to_opale

parent 8cc8cc2a
...@@ -299,12 +299,18 @@ ...@@ -299,12 +299,18 @@
<!-- Gestion methode --> <!-- Gestion methode -->
<xsl:template match="sp:method"> <xsl:template match="sp:method">
<!-- TODO --> <div data-hdoc-type='method'>
<h6><xsl:value-of select="cp:block/cp:blockM/sp:title"/></h6>
<xsl:apply-templates select="cp:block/sp:body/cp:flow/sp:txt/cp:txt//sc:para"/>
</div>
</xsl:template> </xsl:template>
<!-- Gestion rappel --> <!-- Gestion rappel -->
<xsl:template match="sp:reminder"> <xsl:template match="sp:reminder">
<!-- TODO --> <div data-hdoc-type='remind'>
<h6><xsl:value-of select="cp:block/cp:blockM/sp:title"/></h6>
<xsl:apply-templates select="cp:block/sp:body/cp:flow/sp:txt/cp:txt//sc:para"/>
</div>
</xsl:template> </xsl:template>
<!-- ******** FIN ACTIVITE TETM ********** --> <!-- ******** FIN ACTIVITE TETM ********** -->
......
...@@ -382,6 +382,34 @@ ...@@ -382,6 +382,34 @@
</op:res> </op:res>
</sp:adv> </sp:adv>
</xsl:when> </xsl:when>
<xsl:when test="./@data-hdoc-type = 'method'">
<sp:meth>
<op:pbTi>
<xsl:if test="string-length(./h:h6/text()) > 0">
<sp:title>
<xsl:value-of select="./h:h6"/>
</sp:title>
</xsl:if>
</op:pbTi>
<op:res>
<xsl:apply-templates select="./*"/>
</op:res>
</sp:meth>
</xsl:when>
<xsl:when test="./@data-hdoc-type = 'remind'">
<sp:remind>
<op:pbTi>
<xsl:if test="string-length(./h:h6/text()) > 0">
<sp:title>
<xsl:value-of select="./h:h6"/>
</sp:title>
</xsl:if>
</op:pbTi>
<op:res>
<xsl:apply-templates select="./*"/>
</op:res>
</sp:remind>
</xsl:when>
<xsl:otherwise> <xsl:otherwise>
<sp:info> <sp:info>
<op:pbTi> <op:pbTi>
......
...@@ -46,6 +46,8 @@ ...@@ -46,6 +46,8 @@
<value>remark</value> <value>remark</value>
<value>warning</value> <value>warning</value>
<value>advice</value> <value>advice</value>
<value>remind</value>
<value>method</value>
<!-- quiz management --> <!-- quiz management -->
<value>question</value> <value>question</value>
<value>singlechoicequestion</value> <value>singlechoicequestion</value>
......
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