Commit d13c0f34 authored by Tyrannas's avatar Tyrannas

Merge branch 'master' of https://gitlab.utc.fr/crozatst/hdoc

parents 89a316ed 606d02cc
...@@ -46,17 +46,11 @@ ...@@ -46,17 +46,11 @@
<xsl:template match="header"> <xsl:template match="header">
</xsl:template> </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: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:template>
</xsl:stylesheet> </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