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
ad43df76
Commit
ad43df76
authored
Dec 08, 2015
by
qaomia
Browse files
xsl xhtml2hdoc added
parent
0bbcab18
Changes
2
Hide whitespace changes
Inline
Side-by-side
etherpad_to_hdoc/antce/input/testxHTML.xhtml
0 → 100644
View file @
ad43df76
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?xml-stylesheet type="text/xsl" href="../xsl/xhtml2hdoc.xsl"?>
<html
lang=
"en"
>
<head>
<title>
NF29_HdocEtherpad
</title>
<style
type=
"css"
>
*
{
font-family
:
arial
,
sans-serif
;
font-size
:
13px
;
line-height
:
17px
;
}
ul
.indent
{
list-style-type
:
none
;
}
ol
{
list-style-type
:
none
;
padding-left
:
0
;
}
body
>
ol
{
counter-reset
:
first
second
third
fourth
fifth
sixth
seventh
eigth
ninth
tenth
eleventh
twelth
thirteenth
fourteenth
fifteenth
sixteenth
;
}
ol
>
li
:before
{
content
:
counter
(
first
)
". "
;
counter-increment
:
first
;
}
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
". "
;
counter-increment
:
second
;
}
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
". "
;
counter-increment
:
third
;
}
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
". "
;
counter-increment
:
fourth
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
". "
;
counter-increment
:
fifth
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
"."
counter
(
sixth
)
". "
;
counter-increment
:
sixth
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
"."
counter
(
sixth
)
"."
counter
(
seventh
)
". "
;
counter-increment
:
seventh
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
"."
counter
(
sixth
)
"."
counter
(
seventh
)
"."
counter
(
eigth
)
". "
;
counter-increment
:
eigth
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
"."
counter
(
sixth
)
"."
counter
(
seventh
)
"."
counter
(
eigth
)
"."
counter
(
ninth
)
". "
;
counter-increment
:
ninth
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
"."
counter
(
sixth
)
"."
counter
(
seventh
)
"."
counter
(
eigth
)
"."
counter
(
ninth
)
"."
counter
(
tenth
)
". "
;
counter-increment
:
tenth
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
"."
counter
(
sixth
)
"."
counter
(
seventh
)
"."
counter
(
eigth
)
"."
counter
(
ninth
)
"."
counter
(
tenth
)
"."
counter
(
eleventh
)
". "
;
counter-increment
:
eleventh
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
"."
counter
(
sixth
)
"."
counter
(
seventh
)
"."
counter
(
eigth
)
"."
counter
(
ninth
)
"."
counter
(
tenth
)
"."
counter
(
eleventh
)
"."
counter
(
twelth
)
". "
;
counter-increment
:
twelth
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
"."
counter
(
sixth
)
"."
counter
(
seventh
)
"."
counter
(
eigth
)
"."
counter
(
ninth
)
"."
counter
(
tenth
)
"."
counter
(
eleventh
)
"."
counter
(
twelth
)
"."
counter
(
thirteenth
)
". "
;
counter-increment
:
thirteenth
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
"."
counter
(
sixth
)
"."
counter
(
seventh
)
"."
counter
(
eigth
)
"."
counter
(
ninth
)
"."
counter
(
tenth
)
"."
counter
(
eleventh
)
"."
counter
(
twelth
)
"."
counter
(
thirteenth
)
"."
counter
(
fourteenth
)
". "
;
counter-increment
:
fourteenth
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
"."
counter
(
sixth
)
"."
counter
(
seventh
)
"."
counter
(
eigth
)
"."
counter
(
ninth
)
"."
counter
(
tenth
)
"."
counter
(
eleventh
)
"."
counter
(
twelth
)
"."
counter
(
thirteenth
)
"."
counter
(
fourteenth
)
"."
counter
(
fifteenth
)
". "
;
counter-increment
:
fifteenth
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
li
:before
{
content
:
counter
(
first
)
"."
counter
(
second
)
"."
counter
(
third
)
"."
counter
(
fourth
)
"."
counter
(
fifth
)
"."
counter
(
sixth
)
"."
counter
(
seventh
)
"."
counter
(
eigth
)
"."
counter
(
ninth
)
"."
counter
(
tenth
)
"."
counter
(
eleventh
)
"."
counter
(
twelth
)
"."
counter
(
thirteenth
)
"."
counter
(
fourteenth
)
"."
counter
(
fifteenth
)
"."
counter
(
sixthteenth
)
". "
;
counter-increment
:
sixthteenth
;
}
ol
{
text-indent
:
0px
;
}
ol
>
ol
{
text-indent
:
10px
;
}
ol
>
ol
>
ol
{
text-indent
:
20px
;
}
ol
>
ol
>
ol
>
ol
{
text-indent
:
30px
;
}
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
40px
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
50px
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
60px
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
70px
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
80px
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
90px
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
100px
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
110px
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
120px
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
130px
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
140px
;
}
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
>
ol
{
text-indent
:
150px
;
}
</style>
</head>
<body>
<div>
Liens utiles :
<br
/>
gitlab :
<a
href=
"https://gitlab.utc.fr/crozatst/hdoc"
>
https:
//
gitlab.utc.fr
/
crozatst
/
hdoc
</a><br
/>
hdoc :
<a
href=
"http://hdoc.crzt.fr/2014/co/hdocConverter.html"
>
http:
//
hdoc.crzt.fr
/
2014
/
co
/
hdocConverter.html
</a><br
/>
hdoc
etherpad converter :
<a
href=
"http://hdoc.crzt.fr/2014/co/etherpad.html"
>
http:
//
hdoc.crzt.fr
/
2014
/
co
/
etherpad.html
</a><br
/>
informations
sur le format hdoc :
<a
href=
"http://hdoc.crzt.fr/2014/co/hdoc.html"
>
http:
//
hdoc.crzt.fr
/
2014
/
co
/
hdoc.html
</a><br
/>
Changeset :
<a
href=
"http://policypad.readthedocs.org/en/latest/changesets.html"
>
http:
//
policypad.readthedocs.org
/
en
/
latest
/
changesets.html
</a><br
/><br
/>
<ol>
<li><strong>
Product Backlog
</strong></li>
<li><strong>
Lister les t
â
ches
à
r
é
aliser pour am
é
liorer le
module actuel, et
é
valuer leur dur
é
e de
r
é
alisation.
</strong></li>
<li><strong>
D
é
passer le volume horaire disponible, soit 18 h
/
pers * 3 pers
= 54h
</strong></li>
</ol>
*markdown*
<br
/>
Prise en main du projet (1h)
<br
/>
Configurer Git
(1h)
<br
/>
Restructuration antce (1h)
<br
/>
Etude du sch
é
ma Hdoc (3h)
<br
/>
Etude du
sch
é
ma etherpad (3h)
<br
/><em>
Etudier les possibilit
é
s d
'
xsl avec en
entr
é
e un fichier texte (3h)
</em><br
/><em>
Etudier les possibilit
é
s
d
'
xsl en terme d
'
expressions r
é
guli
è
res
(2h)
</em><br
/><em>
Analyse de ce qu
'
ils faut enlever des fichiers .etherpad
(2h)
</em><br
/>
R
éé
crire les fonctionalit
é
s du script perl dans le
XSL. (5h)
<br
/>
Identifier pourquoi le projet actuel ne correspond pas au format HDoc
(2h)
<br
/>
Corriger le projet pour que la sortie corresponde au sch
é
ma HDoc
(10h)
<br
/>
Etudier la solution MarkDown et comment l
'
impl
é
menter
(3h)
<br
/>
Impl
é
menter l
'
utilisation des balises Markdown dans etherpad.
(3h)
<br
/>
Analyser comment fonctionne la notion d
'
auteur dans etherpad et comment
l
'
impl
é
menter en Hdoc (3h)
<br
/>
Impl
é
menter une mise en forme en Hdoc
pour distinguer ce que les diff
é
rents auteurs ont
é
crits ( {
&
author text
&
} (3h)
<br
/>
Corriger le projet pour avoir un format Hdoc destination compatible
avec les modules
Opale
/
Optim (3h)
<br
/>
Creer les applications de etherpad
vers Optim
/
Opale en utilisant les modules existants (3h)
<br
/>
Rendre compte des
t
â
ches r
é
alis
é
es et de la TODO restante
à
la fin de la p
é
riode
(1h)
<br
/>
Comprendre en quoi l
'
ancien site web d
'
exemple est
consid
é
r
é
obsol
è
te (1h)
<br
/>
Mettre
à
niveau le site web
d
'
exemple (1h)
<br
/>
Mise
à
jour de la rubr/ique correspondant au projet sur le
site Hdoc (1h)
<br
/>
R
é
aliser un rapport de projet (2h)
<br
/><br
/><br
/><br
/>
A la
fin, on doit livrer quoi ? Application ? Antce ?
<br
/>
Je crois qu
'
on doit livrer
deux
"
applications
"
:
<br
/>
-de etherpad vers
hdoc
<br
/>
-de hdoc vers etherpad Moi j
'
avais pas compris
qu
'
on faisait la conversion dans ce sens, surtout que ce sera pas trivial vu
qu
'
on enrichit le format d
'
Etherpad de base quand on fait etherpad -
>
hdoc
<br
/>
-
>
je suis pas sur enfait, c
'
est ce que je pensais
avoir compris mais c
'
eest possible que j
'
ai pas tout
é
cout
é
comme il
faut...
<br
/>
Et en plus potentiellement de etherpad vers d
'
autres modules (Optim ou
Opale par exemple) qui utilisent ces deux premi
è
res applications
directement.
<br
/>
Oui non
à
priori y
'
a pas de hdoc vers etherpad :)
<br
/>
La
chaine vis
é
e c
'
est Etherpad - Hdoc - Optim
/
Opale
<br
/></div>
</body>
</html>
etherpad_to_hdoc/antce/xsl/xhtml2hdoc.xsl
View file @
ad43df76
...
...
@@ -2,6 +2,35 @@
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes=
"xs"
<<<<<<<
0bbcab183e98cc176614025950186e8d2c62bf54
version=
"2.0"
>
=======
xmlns="http://www.utc.fr/ics/hdoc/xhtml"
version="2.0" xpath-default-namespace="http://www.w3.org/1999/xhtml">
<xsl:output
method=
"xml"
indent=
"yes"
></xsl:output>
<xsl:template
match=
"html"
>
<html>
<head>
<title><xsl:value-of
select=
"/html/head/title"
/></title>
<meta
charset=
"utf-8"
/>
</head>
<body>
<section>
<header>
<h1>
Contenu
</h1>
</header>
<div>
<p><xsl:value-of
select=
"/html/body/div"
></xsl:value-of></p>
</div>
</section>
</body>
</html>
</xsl:template>
<xsl:template
match=
"*"
>
<xsl:comment>
Balise inconnue
</xsl:comment>
</xsl:template>
>>>>>>> xsl xhtml2hdoc added
</xsl:stylesheet>
\ No newline at end of file
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