summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 @@
3 xmlns:d="http://docbook.org/ns/docbook" 3 xmlns:d="http://docbook.org/ns/docbook"
4 xmlns="http://www.w3.org/1999/xhtml" 4 xmlns="http://www.w3.org/1999/xhtml"
5 exclude-result-prefixes="d"> 5 exclude-result-prefixes="d">
6 6
7 <xsl:template name="component.title"> 7 <xsl:template name="component.title">
8 <xsl:param name="node" select="."/> 8 <xsl:param name="node" select="."/>
9 9
10 <xsl:variable name="level"> 10 <xsl:variable name="level">
11 <xsl:choose> 11 <xsl:choose>
12 <xsl:when test="ancestor::d:section"> 12 <xsl:when test="ancestor::d:section">
13 <xsl:value-of select="count(ancestor::d:section)+1"/> 13 <xsl:value-of select="count(ancestor::d:section)+1"/>
14 </xsl:when> 14 </xsl:when>
15 <xsl:when test="ancestor::d:sect5">6</xsl:when> 15 <xsl:when test="ancestor::sect5">6</xsl:when>
16 <xsl:when test="ancestor::d:sect4">5</xsl:when> 16 <xsl:when test="ancestor::sect4">5</xsl:when>
17 <xsl:when test="ancestor::d:sect3">4</xsl:when> 17 <xsl:when test="ancestor::sect3">4</xsl:when>
18 <xsl:when test="ancestor::d:sect2">3</xsl:when> 18 <xsl:when test="ancestor::sect2">3</xsl:when>
19 <xsl:when test="ancestor::d:sect1">2</xsl:when> 19 <xsl:when test="ancestor::sect1">2</xsl:when>
20 <xsl:otherwise>1</xsl:otherwise> 20 <xsl:otherwise>1</xsl:otherwise>
21 </xsl:choose> 21 </xsl:choose>
22 </xsl:variable> 22 </xsl:variable>
@@ -36,4 +36,4 @@
36 </xsl:call-template> 36 </xsl:call-template>
37 </xsl:element> 37 </xsl:element>
38 </xsl:template> 38 </xsl:template>
39</xsl:stylesheet> \ No newline at end of file 39</xsl:stylesheet>