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
e597a89a
Commit
e597a89a
authored
Dec 15, 2016
by
Raphaël
Browse files
Correction for headers and sections flattenizer
parent
d49f64e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
hdoc_to_pdf/xsl/hdoc_flattenizer.xsl
View file @
e597a89a
...
...
@@ -46,17 +46,11 @@
<xsl:template
match=
"header"
>
</xsl:template>
<xsl:template
match=
"div"
>
<xsl:variable
name=
"level"
select=
"count(ancestor::section) + 1"
/>
<div>
<xsl:element
name=
"h{$level}"
>
<xsl:value-of
select=
"h6"
/>
</xsl:element>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template
match=
"h6"
>
<xsl:variable
name=
"level"
select=
"count(ancestor::section) + 1"
/>
<xsl:element
name=
"h{$level}"
>
<xsl:value-of
select=
"."
/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
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