瀏覽代碼

Use h2 for partintro title.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/new-xsl@8080 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 18 年之前
父節點
當前提交
8de888cb7d
共有 2 個文件被更改,包括 18 次插入2 次删除
  1. 2 2
      xhtml/lfs-sections.xsl
  2. 16 0
      xhtml/lfs-titles.xsl

+ 2 - 2
xhtml/lfs-sections.xsl

@@ -11,7 +11,7 @@
   <xsl:param name="chunk.first.sections" select="1"/>
 
     <!-- preface:
-           Process the child elemements before generating the TOC -->
+           Process the child elements before generating the TOC -->
     <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->
   <xsl:template match="preface">
     <xsl:call-template name="id.warning"/>
@@ -45,7 +45,7 @@
   </xsl:template>
 
     <!-- chapter:
-           Process the child elemements before generating the TOC -->
+           Process the child elements before generating the TOC -->
     <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->
   <xsl:template match="chapter">
     <xsl:call-template name="id.warning"/>

+ 16 - 0
xhtml/lfs-titles.xsl

@@ -41,6 +41,22 @@
     </div>
   </xsl:template>
 
+    <!-- partintro.titlepage:
+           Uses h2 and removed a lot of unneeded code. -->
+    <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+  <xsl:template name="partintro.titlepage">
+    <xsl:if test="title">
+      <div class="partintrotitle">
+        <xsl:if test="@id">
+          <a id="{@id}" name="{@id}"/>
+        </xsl:if>
+        <h2 class="{name(.)}">
+          <xsl:value-of select="title"/>
+        </h2>
+      </div>
+    </xsl:if>
+  </xsl:template>
+
     <!-- appendix.titlepage:
            Uses h1 and removed a lot of unneeded code.
            When sections are not labeled, we want the appendix label in TOC