Commit 075785b5 authored by cliclac's avatar cliclac
Browse files

Modification nom dossier : epub2

opale_to_epub2
parent 045926f8
......@@ -155,7 +155,7 @@
</target>
<target name="CleanTmp">
<!--<delete dir="${tmp}" failonerror="false"/>-->
<delete dir="${tmp}" failonerror="false"/>
</target>
</project>
@echo off
set lib=lib
set ant=hdoc_to_epub.ant
set ant=hdoc_to_epub2.ant
set antparam=-Dprogram.param=%1
set scJarList=%lib%\*
......
#!/bin/sh
lib="lib"
ant="hdoc_to_epub.ant"
ant="hdoc_to_epub2.ant"
antparam="-Dprogram.param=$1"
#Recherche de java et controle que se soit une version SUN
......
......@@ -56,9 +56,12 @@
</html>
</xsl:result-document>
</xsl:template>
<xsl:template match="section" priority="3">
<xsl:element name="h{count(ancestor::section)+1}">
<xsl:if test="section[@data-hdoc-type='exercise']">
Exercice :
</xsl:if>
<xsl:value-of select="header/h1"/>
</xsl:element>
<xsl:apply-templates select="div|section"/>
......@@ -162,6 +165,33 @@
</div>
</xsl:template>
<xsl:template match="//div[@data-hdoc-type='description']" priority="4">
<h4>
Description :
</h4>
<div>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="//div[@data-hdoc-type='question']" priority="4">
<h4>
Question :
</h4>
<div>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="//div[@data-hdoc-type='solution']" priority="4">
<h4>
Solution :
</h4>
<div>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="//span[@data-hdoc-type='syntax']" priority="4">
<span class="bold"><xsl:value-of select="."/></span>
</xsl:template>
......
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