Commit 21493e98 authored by Bastien Bascou's avatar Bastien Bascou

activites texte multimedia, definitions et sample

parent ba84cdd2
......@@ -102,6 +102,26 @@
</sp:shortActivity>
</xsl:template>
<!-- if Section has sub section(s), we create a real activity to print differents possible types of sub sections -->
<xsl:template match="h:body/h:section/h:section">
<sp:textActivity>
<cp:textActivity>
<cp:activityM>
<sp:title>
<xsl:value-of select="./h:header/h:h1"/>
</sp:title>
</cp:activityM>
<xsl:if test="./h:section">
<sp:body>
<cp:blocks>
<xsl:apply-templates select="./*"/>
</cp:blocks>
</sp:body>
</xsl:if>
</cp:textActivity>
</sp:textActivity>
</xsl:template>
<!-- Toutes les introductions de sections sont transformés en résumé. -->
<xsl:template match="h:header/h:div[@data-hdoc-type = 'introduction']">
<sp:abstract>
......@@ -113,6 +133,29 @@
</sp:abstract>
</xsl:template>
<!-- Gestion des définitions. -->
<xsl:template match="h:div[@data-hdoc-type = 'definition']|h:div[@data-hdoc-type = 'example']">
<!-- <xsl:variable name="vtype" select="./@data-hdoc-type/text()"/>
<xsl:element name="{$vtype}">-->
<sp:definition>
<cp:block>
<cp:blockM>
<sp:title>
<xsl:value-of select="./h:h6"/>
</sp:title>
</cp:blockM>
<sp:body>
<cp:flow>
<xsl:if test="./h:p/text()">
<xsl:apply-templates select="./*"/>
</xsl:if>
</cp:flow>
</sp:body>
</cp:block>
</sp:definition>
<!--</xsl:element>-->
</xsl:template>
<!-- Text related templates -->
<xsl:template match="h:p | h:ul | h:ol">
<xsl:if test="not(preceding-sibling::h:p)">
......
<map version="1.0.1">
<node ID="ID_1" TEXT="Framindmap To Canoprof">
<node ID="ID_5" POSITION="right" STYLE="fork" TEXT="#2 S&#233;ance 2">
<node ID="ID_6" POSITION="right" STYLE="fork" TEXT="#def D&#233;finition titre">
<node ID="ID_13" POSITION="right" STYLE="fork" TEXT="#p Definition contenu"/>
</node>
<node ID="ID_20" POSITION="right" STYLE="fork" TEXT="#ex Exemple titre">
<node ID="ID_27" POSITION="right" STYLE="fork" TEXT="#p Exemple contenu : En recherche du moyen de mettre tout les types de contenus similaires &#224; d&#233;finition dans le m&#234;me template"/>
</node>
</node>
<node ID="ID_4" POSITION="left" STYLE="fork" TEXT="#1 S&#233;ance 1">
<node ID="ID_29" POSITION="left" STYLE="fork" TEXT="#p Ici probl&#232;me, l'activit&#233; cr&#233;&#233;e devrait &#234;tre de type description courte"/>
</node>
</node>
</map>
\ No newline at end of file
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