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
edc0b792
Commit
edc0b792
authored
Dec 16, 2015
by
jcomedouteau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout d'un troisieme xsl pour supprimer les p avec un ul
parent
7798791e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
etherpad_to_hdoc/antce/xsl/html2xhtml3.xsl
etherpad_to_hdoc/antce/xsl/html2xhtml3.xsl
+30
-0
No files found.
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