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
eeec22d7
Commit
eeec22d7
authored
Dec 21, 2015
by
qaomia
Browse files
fixes in xsl
parent
689bb604
Changes
2
Hide whitespace changes
Inline
Side-by-side
etherpad_to_hdoc/xsl/html2xhtmlv2.xsl
View file @
eeec22d7
...
...
@@ -16,9 +16,7 @@
</p>
</xsl:template>
<xsl:template
match=
"li/br"
>
<p>
<xsl:apply-templates
select=
"key('bits', generate-id())"
/>
</p>
<xsl:apply-templates/>
</xsl:template>
<xsl:template
match=
"strong"
>
<em>
...
...
etherpad_to_hdoc/xsl/xhtml2hdoc.xsl
View file @
eeec22d7
...
...
@@ -4,7 +4,7 @@
xmlns=
"http://www.utc.fr/ics/hdoc/xhtml"
version=
"2.0"
>
<xsl:output
method=
"xml"
indent=
"yes"
/>
<xsl:template
match=
"html"
>
<xsl:template
match=
"html"
priority=
"3"
>
<html>
<head>
<title>
...
...
@@ -22,21 +22,8 @@
</body>
</html>
</xsl:template>
<xsl:template
match=
"div/p | div/p"
priority=
"1"
>
<xsl:choose>
<xsl:when
test=
"ul"
>
<xsl:apply-templates/>
</xsl:when>
<xsl:when
test=
"ol"
>
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<p><xsl:apply-templates
select=
"@* | node()"
/></p>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template
match=
"li"
priority =
"
1
"
>
<xsl:template
match=
"li"
priority =
"
2
"
>
<li><p><xsl:apply-templates
select=
"@* | node()"
/></p></li>
</xsl:template>
...
...
@@ -53,7 +40,7 @@
-->
<!-- Namespace substitution for hdoc elements -->
<xsl:template
match=
"*"
>
<xsl:template
match=
"*"
priority=
"1"
>
<xsl:element
name=
"{local-name()}"
>
<xsl:apply-templates
select=
"node()|@*"
/>
</xsl:element>
...
...
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