<!-- HTML H level is one higher than section level -->
<xsl:variable name="hlevel">
<xsl:choose>
- <xsl:when test="@renderas = 'sect1'">1</xsl:when>
- <xsl:when test="@renderas = 'sect2'">2</xsl:when>
- <xsl:when test="@renderas = 'sect3'">3</xsl:when>
- <xsl:when test="@renderas = 'sect4'">4</xsl:when>
- <xsl:when test="@renderas = 'sect5'">5</xsl:when>
+ <xsl:when test="@renderas = 'sect1'">2</xsl:when>
+ <xsl:when test="@renderas = 'sect2'">3</xsl:when>
+ <xsl:when test="@renderas = 'sect3'">4</xsl:when>
+ <xsl:when test="@renderas = 'sect4'">5</xsl:when>
+ <xsl:when test="@renderas = 'sect5'">6</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$clevel + 1"/>
</xsl:otherwise>