aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/template
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/template')
-rw-r--r--documentation/template/component.title.xsl16
1 files changed, 8 insertions, 8 deletions
diff --git a/documentation/template/component.title.xsl b/documentation/template/component.title.xsl
index 3a5539dc83..ee21d59ad5 100644
--- a/documentation/template/component.title.xsl
+++ b/documentation/template/component.title.xsl
@@ -3,20 +3,20 @@
xmlns:d="http://docbook.org/ns/docbook"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="d">
-
+
<xsl:template name="component.title">
<xsl:param name="node" select="."/>
-
+
<xsl:variable name="level">
<xsl:choose>
<xsl:when test="ancestor::d:section">
<xsl:value-of select="count(ancestor::d:section)+1"/>
</xsl:when>
- <xsl:when test="ancestor::d:sect5">6</xsl:when>
- <xsl:when test="ancestor::d:sect4">5</xsl:when>
- <xsl:when test="ancestor::d:sect3">4</xsl:when>
- <xsl:when test="ancestor::d:sect2">3</xsl:when>
- <xsl:when test="ancestor::d:sect1">2</xsl:when>
+ <xsl:when test="ancestor::sect5">6</xsl:when>
+ <xsl:when test="ancestor::sect4">5</xsl:when>
+ <xsl:when test="ancestor::sect3">4</xsl:when>
+ <xsl:when test="ancestor::sect2">3</xsl:when>
+ <xsl:when test="ancestor::sect1">2</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
@@ -36,4 +36,4 @@
</xsl:call-template>
</xsl:element>
</xsl:template>
-</xsl:stylesheet> \ No newline at end of file
+</xsl:stylesheet>