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
5dc6427f
Commit
5dc6427f
authored
Dec 17, 2015
by
Jean Vintache
Browse files
multiples fixes but uuuhhh... still broken.
parent
edc0b792
Changes
3
Show whitespace changes
Inline
Side-by-side
etherpad_to_hdoc/antce/myantce.ant
View file @
5dc6427f
...
...
@@ -32,24 +32,28 @@
<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}/tozip/content.xml"
style=
"${xsl}/xhtml2hdoc.xsl"
/>
<xslt
in=
"${tmp}/tmpPad.xhtml"
out=
"${tmp}/tmpPad2.xhtml"
style=
"${xsl}/html2xhtmlv2.xsl"
/>
<!-- a priori la tâche suivante ne sert à rien -->
<xslt
in=
"${tmp}/tmpPad2.xhtml"
out=
"${tmp}/tmpPad3.xhtml"
style=
"${xsl}/html2xhtml3.xsl"
/>
<xslt
in=
"${tmp}/tmpPad3.xhtml"
out=
"${tmp}/tozip/content.xml"
style=
"${xsl}/xhtml2hdoc.xsl"
/>
</target>
<!-- Builds Hdoc structure -->
<target
name=
"construct_hdoc"
>
<mkdir
dir=
"${tmp}/tozip/"
/>
<mkdir
dir=
"${tmp}/META-INF/"
/>
<mkdir
dir=
"${tmp}/tozip/META-INF"
/>
<!-- container -->
<touch
file=
"${tmp}/
tozip/
META-INF/container.xml"
/>
<echoxml
file=
"${tmp}/
tozip/
META-INF/container.xml"
>
<touch
file=
"${tmp}/META-INF/container.xml"
/>
<echoxml
file=
"${tmp}/META-INF/container.xml"
>
<container
version=
"1.0"
>
<rootfiles>
<rootfile
full-path=
"${rootfilename}"
media-type=
"text/xml"
/>
</rootfiles>
</container>
</echoxml>
<xslt
classpath=
"lib/saxon9he.jar"
in=
"${tmp}/
tozip/
META-INF/container.xml"
out=
"${tmp}/META-INF/container.xml"
style=
"${xsl}/addNamespaceToContainer.xsl"
/>
<xslt
in=
"${tmp}/META-INF/container.xml"
out=
"${tmp}/
tozip/
META-INF/container.xml"
style=
"${xsl}/addNamespaceToContainer.xsl"
/>
<!-- mimetype -->
<touch
file=
"${tmp}/mimetype"
/>
...
...
etherpad_to_hdoc/antce/xsl/html2xhtml.xsl
View file @
5dc6427f
...
...
@@ -8,7 +8,7 @@
<xsl:strip-space
elements=
"*"
/>
<xsl:param
name=
"text-encoding"
as=
"xs:string"
select=
"'utf-8'"
/>
<xsl:param
name=
"text-uri"
as=
"xs:string"
select=
"'../input/
test
.html'"
/>
<xsl:param
name=
"text-uri"
as=
"xs:string"
select=
"'../input/
pad
.html'"
/>
<xsl:template
name=
"text2xml"
>
<xsl:variable
name=
"text"
select=
"unparsed-text($text-uri, $text-encoding)"
/>
...
...
etherpad_to_hdoc/antce/xsl/xhtml2hdoc.xsl
View file @
5dc6427f
...
...
@@ -17,9 +17,7 @@
<header>
<h1>
Contenu
</h1>
</header>
<div>
<xsl:apply-templates
select=
"/html/body/div"
/>
</div>
</section>
</body>
</html>
...
...
@@ -46,11 +44,17 @@
</xsl:choose>
</xsl:template>
<!--
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
-->
<xsl:template
match=
"/"
>
<xsl:apply-templates
select=
"*"
></xsl:apply-templates>
</xsl:template>
<!-- Namespace substitution for hdoc elements -->
<xsl:template
match=
"*"
>
...
...
Write
Preview
Supports
Markdown
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