Skip to content
GitLab
Menu
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
75209c06
Commit
75209c06
authored
Dec 22, 2015
by
qaomia
Browse files
Now we manage text after lists
parent
b657f018
Changes
2
Hide whitespace changes
Inline
Side-by-side
etherpad_to_hdoc/etherpad_to_hdoc.ant
100644 → 100755
View file @
75209c06
...
...
@@ -32,10 +32,11 @@
<target
name=
"apply-xslt"
>
<htmlcleaner
src=
"${in}/pad.html"
dest=
"${tmp}/pad-clean.xml"
/>
<xslt
in=
"${xsl}/html2xhtml.xsl"
out=
"${tmp}/tmpPad.xhtml"
style=
"${xsl}/html2xhtml.xsl"
/>
<xslt
in=
"${tmp}/tmpPad.xhtml"
out=
"${tmp}/tmpPad2.xhtml"
style=
"${xsl}/html2xhtmlv2.xsl"
/>
<xslt
in=
"${tmp}/tmpPad.xhtml"
out=
"${tmp}/tmpPad2.xhtml"
style=
"${xsl}/html2xhtmlv1.xsl"
/>
<xslt
in=
"${tmp}/tmpPad2.xhtml"
out=
"${tmp}/tmpPad3.xhtml"
style=
"${xsl}/html2xhtmlv2.xsl"
/>
<!-- a priori la tâche suivante ne sert à rien -->
<xslt
in=
"${tmp}/tmpPad
2
.xhtml"
out=
"${tmp}/tmpPad
3
.xhtml"
style=
"${xsl}/html2xhtml3.xsl"
/>
<xslt
in=
"${tmp}/tmpPad
3
.xhtml"
out=
"${tmp}/tozip/content.xml"
style=
"${xsl}/xhtml2hdoc.xsl"
/>
<xslt
in=
"${tmp}/tmpPad
3
.xhtml"
out=
"${tmp}/tmpPad
4
.xhtml"
style=
"${xsl}/html2xhtml3.xsl"
/>
<xslt
in=
"${tmp}/tmpPad
4
.xhtml"
out=
"${tmp}/tozip/content.xml"
style=
"${xsl}/xhtml2hdoc.xsl"
/>
</target>
<!-- Builds Hdoc structure -->
...
...
etherpad_to_hdoc/xsl/html2xhtmlv1.xsl
0 → 100644
View file @
75209c06
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version=
"1.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
<xsl:output
method=
"xml"
indent=
"yes"
/>
<xsl:key
name=
"bits"
match=
"p/node()[not(self::br)]"
use=
"generate-id((..|preceding-sibling::br[1])[last()])"
/>
<xsl:template
match=
"ul"
>
<ul>
<xsl:apply-templates
select=
"*"
/>
</ul><br/>
</xsl:template>
<xsl:template
match=
"ol"
>
<ol>
<xsl:apply-templates
select=
"*"
/>
</ol><br/>
</xsl:template>
<xsl:template
match=
"@*|node()"
>
<xsl:copy>
<xsl:apply-templates
select=
"@*|node()"
/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
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