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
edc0b792
Commit
edc0b792
authored
Dec 16, 2015
by
jcomedouteau
Browse files
Ajout d'un troisieme xsl pour supprimer les p avec un ul
parent
7798791e
Changes
1
Hide whitespace changes
Inline
Side-by-side
etherpad_to_hdoc/antce/xsl/html2xhtml3.xsl
0 → 100644
View file @
edc0b792
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes=
"xs"
xmlns=
"http://www.utc.fr/ics/hdoc/xhtml"
version=
"2.0"
>
<xsl:output
method=
"xml"
indent=
"yes"
/>
<!--Identity template,
provides default behavior that copies all content into the output -->
<xsl:template
match=
"@*|node()"
>
<xsl:copy>
<xsl:apply-templates
select=
"@*|node()"
/>
</xsl:copy>
</xsl:template>
<!--More specific template for Node766 that provides custom behavior -->
<xsl:template
match=
"body"
>
<xsl:choose>
<xsl:when
test=
"ul"
>
<xsl:copy>
<xsl:value-of
select=
"ul"
/>
</xsl:copy>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates
select=
"@*|node()"
/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</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