section.level — Returns the hierarchical level of a section
<xsl:template name="section.level"> <xsl:param name="node" select="."/> ... </xsl:template>
This template calculates the hierarchical level of a section.
The element sect1
is at level 1, sect2
is
at level 2, etc.
Recursive sections are calculated down to the fifth level.