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
47b9ad32
Commit
47b9ad32
authored
Jan 11, 2017
by
Fabien Boucaud
Browse files
Updating html2xhtml3.xsl with the removal of the titles' paragraph tags
parent
ac0e6fcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
framapad_to_hdoc/xsl/html2xhtml3.xsl
View file @
47b9ad32
<?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"
>
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes=
"xs"
version=
"2.0"
>
<xsl:output
method=
"xml"
indent=
"yes"
/>
<xsl:template
match=
"//li[parent::p]"
priority=
"1"
>
...
...
@@ -33,6 +32,10 @@
</li>
</xsl:template>
<xsl:template
match=
"p[child::h1 or child::h2 or child::h3 or child::h4 or child::h5 or child::h6]"
>
<xsl:apply-templates
select=
"./*"
/>
</xsl:template>
<!--Identity template,
provides default behavior that copies all content into the output -->
<xsl:template
match=
"@*|node()"
>
...
...
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