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
5dc6427f
Commit
5dc6427f
authored
Dec 17, 2015
by
Jean Vintache
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multiples fixes but uuuhhh... still broken.
parent
edc0b792
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
etherpad_to_hdoc/antce/myantce.ant
etherpad_to_hdoc/antce/myantce.ant
+8
-4
etherpad_to_hdoc/antce/xsl/html2xhtml.xsl
etherpad_to_hdoc/antce/xsl/html2xhtml.xsl
+1
-1
etherpad_to_hdoc/antce/xsl/xhtml2hdoc.xsl
etherpad_to_hdoc/antce/xsl/xhtml2hdoc.xsl
+8
-4
No files found.
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>
<xsl:apply-templates
select=
"/html/body/div"
/>
</section>
</body>
</html>
...
...
@@ -46,12 +44,18 @@
</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=
"*"
>
<xsl:element
name=
"{local-name()}"
>
...
...
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