+ <xsl:template match="*/section">
+
+ <!-- Add 2 to the "level" attr for the html header level; default h3 -->
+ <xsl:variable name="hlevel">
+ <xsl:choose>
+ <xsl:when test="@level!=''"><xsl:value-of select="@level + 2"/></xsl:when>
+ <xsl:otherwise>3</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <!-- Take the "sectprefix" attr, default position() -->
+ <xsl:variable name="sectprefix">
+ <xsl:choose>
+ <xsl:when test="@sectprefix!=''"> <xsl:value-of select="@sectprefix"/> </xsl:when>
+ <xsl:otherwise> <xsl:value-of select="position()"/> </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+