Преглед на файлове

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>
Scott Rifenbark преди 11 години
родител
ревизия
66e3891337
променени са 1 файла, в които са добавени 8 реда и са изтрити 8 реда
  1. 8 8
      documentation/template/component.title.xsl

+ 8 - 8
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>
+</xsl:stylesheet>