Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hdoc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Stephane Crozat
hdoc
Commits
045926f8
Commit
045926f8
authored
Jan 06, 2017
by
Asus-PC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
css
parent
49c0555e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
90 deletions
+76
-90
hdoc_to_epub/file/stylesheet.css
hdoc_to_epub/file/stylesheet.css
+4
-0
hdoc_to_epub/hdoc_to_epub.ant
hdoc_to_epub/hdoc_to_epub.ant
+1
-1
hdoc_to_epub/input/result.hdoc
hdoc_to_epub/input/result.hdoc
+0
-0
hdoc_to_epub/xsl/chapitre.xsl
hdoc_to_epub/xsl/chapitre.xsl
+71
-89
No files found.
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 @@
</target>
<target
name=
"CleanTmp"
>
<
delete
dir=
"${tmp}"
failonerror=
"false"
/
>
<
!--<delete dir="${tmp}" failonerror="false"/>--
>
</target>
</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,116 +66,99 @@
<xsl:template
match=
"h6"
priority=
"3"
/>
<xsl:template
match=
"//div[@data-hdoc-type='remark']"
priority=
"4"
>
<div
class=
"noCut"
>
<h3>
<xsl:if
test=
"h6"
>
<span
class=
"textTitle"
><xsl:value-of
select=
"h6"
/></span>
</xsl:if>
<span
class=
"title"
>
Remarque
</span>
</h3>
<div
class=
"border"
>
<xsl:apply-templates/>
</div>
<xsl:template
match=
"//div[@data-hdoc-type='emphasis']"
priority=
"4"
>
<h3>
Fondamental :
<xsl:if
test=
"h6"
>
<xsl:value-of
select=
"h6"
/>
</xsl:if>
</h3>
<div
class=
"border-top-bot"
>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template
match=
"//div[@data-hdoc-type='emphasis']"
priority=
"4"
>
<div
class=
"noCut"
>
<h3>
<xsl:if
test=
"h6"
>
<span
class=
"textTitle"
><xsl:value-of
select=
"h6"
/></span>
</xsl:if>
<span
class=
"title"
>
Fondamental
</span>
</h3>
<div
class=
"border"
>
<xsl:apply-templates/>
</div>
<xsl:template
match=
"//div[@data-hdoc-type='definition']"
priority=
"4"
>
<h3>
Définition :
<xsl:if
test=
"h6"
>
<xsl:value-of
select=
"h6"
/>
</xsl:if>
</h3>
<div
class=
"border-top-bot"
>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template
match=
"//div[@data-hdoc-type='remark']"
priority=
"4"
>
<h3>
Remarque :
<xsl:if
test=
"h6"
>
<xsl:value-of
select=
"h6"
/>
</xsl:if>
</h3>
<div>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template
match=
"//div[@data-hdoc-type='complement']"
priority=
"4"
>
<div
class=
"noCut"
>
<h3>
<xsl:if
test=
"h6"
>
<span
class=
"textTitle"
><xsl:value-of
select=
"h6"
/></span>
</xsl:if>
<span
class=
"title"
>
Complément
</span>
</h3>
<div
class=
"border"
>
<xsl:apply-templates/>
</div>
<h3>
Complément :
<xsl:if
test=
"h6"
>
<xsl:value-of
select=
"h6"
/>
</xsl:if>
</h3>
<div>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template
match=
"//div[@data-hdoc-type='example']"
priority=
"4"
>
<div
class=
"noCut"
>
<h3>
<xsl:if
test=
"h6"
>
<span
class=
"textTitle"
><xsl:value-of
select=
"h6"
/></span>
</xsl:if>
<span
class=
"title"
>
Example
</span>
</h3>
<div
class=
"border"
>
<xsl:apply-templates/>
</div>
<h3>
Exemple :
<xsl:if
test=
"h6"
>
<xsl:value-of
select=
"h6"
/>
</xsl:if>
</h3>
<div>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template
match=
"//div[@data-hdoc-type='syntax']"
priority=
"4"
>
<div
class=
"noCut"
>
<h3>
<xsl:if
test=
"h6"
>
<span
class=
"textTitle"
><xsl:value-of
select=
"h6"
/></span>
</xsl:if>
<span
class=
"title"
>
Syntaxe
</span>
</h3>
<div
class=
"border"
>
<xsl:apply-templates/>
</div>
<h3>
Syntaxe :
<xsl:if
test=
"h6"
>
<xsl:value-of
select=
"h6"
/>
</xsl:if>
</h3>
<div>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template
match=
"//div[@data-hdoc-type='warning']"
priority=
"4"
>
<
div
class=
"noCut"
>
<h3
class=
"warning"
>
<
h3
>
Attention :
<xsl:if
test=
"h6"
>
<
span
class=
"textTitle"
><xsl:value-of
select=
"h6"
/></span
>
<
xsl:value-of
select=
"h6"
/
>
</xsl:if>
<span
class=
"title"
>
Attention
</span>
</h3>
<div
class=
"borderWarning"
>
<xsl:apply-templates/>
</div>
</h3>
<div>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template
match=
"//div[@data-hdoc-type='advice']"
priority=
"4"
>
<div
class=
"noCut"
>
<h3>
<xsl:if
test=
"h6"
>
<span
class=
"textTitle"
><xsl:value-of
select=
"h6"
/></span>
</xsl:if>
<span
class=
"title"
>
Conseil
</span>
</h3>
<div
class=
"border"
>
<xsl:apply-templates/>
</div>
</div>
</xsl:template>
<xsl:template
match=
"//div[@data-hdoc-type='definition']"
priority=
"4"
>
<div
class=
"noCut"
>
<h3>
<xsl:if
test=
"h6"
>
<span
class=
"textTitle"
><xsl:value-of
select=
"h6"
/></span>
</xsl:if>
<span
class=
"title"
>
Définition
</span>
</h3>
<div
class=
"border"
>
<xsl:apply-templates/>
</div>
<h3>
Conseil :
<xsl:if
test=
"h6"
>
<xsl:value-of
select=
"h6"
/>
</xsl:if>
</h3>
<div>
<xsl:apply-templates/>
</div>
</xsl:template>
...
...
@@ -184,11 +167,10 @@
</xsl:template>
<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=
"alt"
><xsl:value-of
select=
"./@alt"
/></xsl:attribute>
<xsl:attribute
name=
"width"
>
300px
</xsl:attribute>
</xsl:element>
</img>
</xsl:template>
<xsl:template
match=
"//a[not(starts-with(@href,'http'))]"
priority=
"4"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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