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>
This commit is contained in:
parent
0f6128e906
commit
66e3891337
|
@ -3,20 +3,20 @@
|
||||||
xmlns:d="http://docbook.org/ns/docbook"
|
xmlns:d="http://docbook.org/ns/docbook"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
exclude-result-prefixes="d">
|
exclude-result-prefixes="d">
|
||||||
|
|
||||||
<xsl:template name="component.title">
|
<xsl:template name="component.title">
|
||||||
<xsl:param name="node" select="."/>
|
<xsl:param name="node" select="."/>
|
||||||
|
|
||||||
<xsl:variable name="level">
|
<xsl:variable name="level">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="ancestor::d:section">
|
<xsl:when test="ancestor::d:section">
|
||||||
<xsl:value-of select="count(ancestor::d:section)+1"/>
|
<xsl:value-of select="count(ancestor::d:section)+1"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="ancestor::d:sect5">6</xsl:when>
|
<xsl:when test="ancestor::sect5">6</xsl:when>
|
||||||
<xsl:when test="ancestor::d:sect4">5</xsl:when>
|
<xsl:when test="ancestor::sect4">5</xsl:when>
|
||||||
<xsl:when test="ancestor::d:sect3">4</xsl:when>
|
<xsl:when test="ancestor::sect3">4</xsl:when>
|
||||||
<xsl:when test="ancestor::d:sect2">3</xsl:when>
|
<xsl:when test="ancestor::sect2">3</xsl:when>
|
||||||
<xsl:when test="ancestor::d:sect1">2</xsl:when>
|
<xsl:when test="ancestor::sect1">2</xsl:when>
|
||||||
<xsl:otherwise>1</xsl:otherwise>
|
<xsl:otherwise>1</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
@ -36,4 +36,4 @@
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:element>
|
</xsl:element>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
Loading…
Reference in New Issue