Commit 045926f8 authored by Asus-PC's avatar Asus-PC

css

parent 49c0555e
.border-top-bot{
border-top : 1px solid black;
border-bottom : 1px solid black;
}
\ No newline at end of file
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
</target> </target>
<target name="CleanTmp"> <target name="CleanTmp">
<delete dir="${tmp}" failonerror="false"/> <!--<delete dir="${tmp}" failonerror="false"/>-->
</target> </target>
</project> </project>
...@@ -66,117 +66,100 @@ ...@@ -66,117 +66,100 @@
<xsl:template match="h6" priority="3"/> <xsl:template match="h6" priority="3"/>
<xsl:template match="//div[@data-hdoc-type='emphasis']" priority="4">
<xsl:template match="//div[@data-hdoc-type='remark']" priority="4">
<div class="noCut">
<h3> <h3>
Fondamental :
<xsl:if test="h6"> <xsl:if test="h6">
<span class="textTitle"><xsl:value-of select="h6"/></span> <xsl:value-of select="h6"/>
</xsl:if> </xsl:if>
<span class="title">Remarque</span>
</h3> </h3>
<div class="border"> <div class="border-top-bot">
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</div>
</xsl:template> </xsl:template>
<xsl:template match="//div[@data-hdoc-type='emphasis']" priority="4"> <xsl:template match="//div[@data-hdoc-type='definition']" priority="4">
<div class="noCut">
<h3> <h3>
Définition :
<xsl:if test="h6"> <xsl:if test="h6">
<span class="textTitle"><xsl:value-of select="h6"/></span> <xsl:value-of select="h6"/>
</xsl:if> </xsl:if>
<span class="title">Fondamental</span>
</h3> </h3>
<div class="border"> <div class="border-top-bot">
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</div>
</xsl:template> </xsl:template>
<xsl:template match="//div[@data-hdoc-type='complement']" priority="4"> <xsl:template match="//div[@data-hdoc-type='remark']" priority="4">
<div class="noCut">
<h3> <h3>
Remarque :
<xsl:if test="h6"> <xsl:if test="h6">
<span class="textTitle"><xsl:value-of select="h6"/></span> <xsl:value-of select="h6"/>
</xsl:if> </xsl:if>
<span class="title">Complément</span>
</h3> </h3>
<div class="border"> <div>
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</div>
</xsl:template> </xsl:template>
<xsl:template match="//div[@data-hdoc-type='example']" priority="4"> <xsl:template match="//div[@data-hdoc-type='complement']" priority="4">
<div class="noCut">
<h3> <h3>
Complément :
<xsl:if test="h6"> <xsl:if test="h6">
<span class="textTitle"><xsl:value-of select="h6"/></span> <xsl:value-of select="h6"/>
</xsl:if> </xsl:if>
<span class="title">Example</span>
</h3> </h3>
<div class="border"> <div>
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</div>
</xsl:template> </xsl:template>
<xsl:template match="//div[@data-hdoc-type='syntax']" priority="4"> <xsl:template match="//div[@data-hdoc-type='example']" priority="4">
<div class="noCut">
<h3> <h3>
Exemple :
<xsl:if test="h6"> <xsl:if test="h6">
<span class="textTitle"><xsl:value-of select="h6"/></span> <xsl:value-of select="h6"/>
</xsl:if> </xsl:if>
<span class="title">Syntaxe</span>
</h3> </h3>
<div class="border"> <div>
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</div>
</xsl:template> </xsl:template>
<xsl:template match="//div[@data-hdoc-type='warning']" priority="4"> <xsl:template match="//div[@data-hdoc-type='syntax']" priority="4">
<div class="noCut"> <h3>
<h3 class="warning"> Syntaxe :
<xsl:if test="h6"> <xsl:if test="h6">
<span class="textTitle"><xsl:value-of select="h6"/></span> <xsl:value-of select="h6"/>
</xsl:if> </xsl:if>
<span class="title">Attention</span>
</h3> </h3>
<div class="borderWarning"> <div>
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</div>
</xsl:template> </xsl:template>
<xsl:template match="//div[@data-hdoc-type='advice']" priority="4"> <xsl:template match="//div[@data-hdoc-type='warning']" priority="4">
<div class="noCut">
<h3> <h3>
Attention :
<xsl:if test="h6"> <xsl:if test="h6">
<span class="textTitle"><xsl:value-of select="h6"/></span> <xsl:value-of select="h6"/>
</xsl:if> </xsl:if>
<span class="title">Conseil</span>
</h3> </h3>
<div class="border"> <div>
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</div>
</xsl:template> </xsl:template>
<xsl:template match="//div[@data-hdoc-type='definition']" priority="4"> <xsl:template match="//div[@data-hdoc-type='advice']" priority="4">
<div class="noCut">
<h3> <h3>
Conseil :
<xsl:if test="h6"> <xsl:if test="h6">
<span class="textTitle"><xsl:value-of select="h6"/></span> <xsl:value-of select="h6"/>
</xsl:if> </xsl:if>
<span class="title">Définition</span>
</h3> </h3>
<div class="border"> <div>
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</div>
</xsl:template> </xsl:template>
<xsl:template match="//span[@data-hdoc-type='syntax']" priority="4"> <xsl:template match="//span[@data-hdoc-type='syntax']" priority="4">
...@@ -184,11 +167,10 @@ ...@@ -184,11 +167,10 @@
</xsl:template> </xsl:template>
<xsl:template match="//img" priority="4"> <xsl:template match="//img" priority="4">
<xsl:element name="img"> <img width="300px">
<xsl:attribute name="src">../images/<xsl:value-of select="./@alt"/></xsl:attribute> <xsl:attribute name="src">../images/<xsl:value-of select="./@alt"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="./@alt"/></xsl:attribute> <xsl:attribute name="alt"><xsl:value-of select="./@alt"/></xsl:attribute>
<xsl:attribute name="width">300px</xsl:attribute> </img>
</xsl:element>
</xsl:template> </xsl:template>
<xsl:template match="//a[not(starts-with(@href,'http'))]" priority="4"> <xsl:template match="//a[not(starts-with(@href,'http'))]" priority="4">
......
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