Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
045926f8
Commit
045926f8
authored
Jan 06, 2017
by
Asus-PC
Browse files
css
parent
49c0555e
Changes
4
Show whitespace changes
Inline
Side-by-side
hdoc_to_epub/file/stylesheet.css
View file @
045926f8
.border-top-bot
{
border-top
:
1px
solid
black
;
border-bottom
:
1px
solid
black
;
}
\ No newline at end of file
hdoc_to_epub/hdoc_to_epub.ant
View file @
045926f8
...
@@ -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>
hdoc_to_epub/input/result.hdoc
deleted
100644 → 0
View file @
49c0555e
File deleted
hdoc_to_epub/xsl/chapitre.xsl
View file @
045926f8
...
@@ -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"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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