summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2014-06-09 09:03:46 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-18 10:30:47 +0100
commit66e3891337e742b355b13936ab99cb67fd1ab5cc (patch)
treece20c980a4286740b96bd51c0551edd742e79732 /documentation
parent0f6128e906a5753ca07965649bcbf51fd84c9b8b (diff)
downloadpoky-66e3891337e742b355b13936ab99cb67fd1ab5cc.tar.gz
template: Removed the "d:" character namespace prefix.
The prefix is used for DocBook 5 Schema. We are using the 4.2 Schema. Having this prefix disabled the permalink titles XSL template (section.title.xsl) produced permalinks with no titles. Because I removed it in the section.title.xls file, I also removed it here for completeness. Note that I don't think the template is used at this point but I made the change just in case for the future. (From yocto-docs rev: 8eca4299d0408c1095bfa8aa7b9f04e246db0c0d) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-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>