Commit e597a89a authored by Raphaël's avatar Raphaël

Correction for headers and sections flattenizer

parent d49f64e7
......@@ -46,17 +46,11 @@
<xsl:template match="header">
</xsl:template>
<xsl:template match="div">
<xsl:template match="h6">
<xsl:variable name="level" select="count(ancestor::section) + 1"/>
<div>
<xsl:element name="h{$level}">
<xsl:value-of select="h6"/>
<xsl:value-of select="."/>
</xsl:element>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="h6">
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment