- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/xhtml/lfs-sections.xsl
r44850bb r52dcb7d 1 <?xml version='1.0' encoding=' UTF-8'?>1 <?xml version='1.0' encoding='ISO-8859-1'?> 2 2 3 3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" … … 12 12 13 13 <!-- preface: 14 Output non sect1 child elements before the TOC 15 Output title outside of the <div> because we want to be able to 16 use it at a fixed position --> 14 Output non sect1 child elements before the TOC --> 17 15 <!-- The original template is in {docbook-xsl}/xhtml/components.xsl --> 18 16 <xsl:template match="preface"> 19 17 <xsl:call-template name="id.warning"/> 20 <xsl:call-template name="preface.titlepage"/>21 <xsl:call-template name="component.separator"/>22 18 <div> 23 19 <xsl:apply-templates select="." mode="class.attribute"/> … … 31 27 </xsl:attribute> 32 28 </xsl:if> 29 <xsl:call-template name="component.separator"/> 30 <xsl:call-template name="preface.titlepage"/> 33 31 <xsl:apply-templates/> 34 32 <xsl:variable name="toc.params"> … … 47 45 </xsl:template> 48 46 49 <!-- part:50 Output non sect1 child elements before the TOC51 Output title outside of the <div> because we want to be able to52 use it at a fixed position -->53 <!-- The original template is in {docbook-xsl}/xhtml/divisions.xsl -->54 <xsl:template match="part">55 <xsl:call-template name="id.warning"/>56 57 <xsl:call-template name="part.titlepage"/>58 59 <div>60 <xsl:apply-templates select="." mode="common.html.attributes"/>61 <xsl:call-template name="id.attribute">62 <xsl:with-param name="conditional" select="0"/>63 </xsl:call-template>64 65 <xsl:apply-templates/>66 <xsl:variable name="toc.params">67 <xsl:call-template name="find.path.params">68 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>69 </xsl:call-template>70 </xsl:variable>71 <xsl:if test="not(partintro) and contains($toc.params, 'toc')">72 <xsl:call-template name="division.toc"/>73 </xsl:if>74 </div>75 </xsl:template>76 77 47 <!-- chapter: 78 Output non sect1 child elements before the TOC 79 Output title before div to be able to fix the title position --> 48 Output non sect1 child elements before the TOC --> 80 49 <!-- The original template is in {docbook-xsl}/xhtml/components.xsl --> 81 50 <xsl:template match="chapter"> 82 51 <xsl:call-template name="id.warning"/> 83 <xsl:call-template name="chapter.titlepage"/>84 <xsl:call-template name="component.separator"/>85 52 <div> 86 53 <xsl:apply-templates select="." mode="class.attribute"/> … … 94 61 </xsl:attribute> 95 62 </xsl:if> 63 <xsl:call-template name="component.separator"/> 64 <xsl:call-template name="chapter.titlepage"/> 96 65 <xsl:apply-templates/> 97 66 <xsl:variable name="toc.params"> … … 110 79 </xsl:template> 111 80 112 <!-- appendix:113 Output non sect1 child elements before the TOC114 Output title before div to be able to fix the title position -->115 <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->116 <xsl:template match="appendix">117 118 <xsl:call-template name="id.warning"/>119 120 <xsl:call-template name="appendix.titlepage"/>121 122 <xsl:element name="div" namespace="http://www.w3.org/1999/xhtml">123 <xsl:call-template name="common.html.attributes">124 <xsl:with-param name="inherit" select="1"/>125 </xsl:call-template>126 <xsl:call-template name="id.attribute">127 <xsl:with-param name="conditional" select="0"/>128 </xsl:call-template>129 130 <xsl:apply-templates/>131 132 <xsl:variable name="toc.params">133 <xsl:call-template name="find.path.params">134 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>135 </xsl:call-template>136 </xsl:variable>137 138 <xsl:if test="contains($toc.params, 'toc')">139 <xsl:call-template name="component.toc">140 <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>141 </xsl:call-template>142 </xsl:if>143 144 </xsl:element>145 </xsl:template>146 147 81 <!-- sect1: 148 82 When there is a role attibute, use it as the class value. 149 83 Process the SVN keywords found in sect1info as a footnote. 150 Output title before the containing <div> so that the title151 can be at a fixed position.152 84 Removed unused code. --> 153 85 <!-- The original template is in {docbook-xsl}/xhtml/sections.xsl --> 154 86 <xsl:template match="sect1"> 155 <xsl:call-template name="sect1.titlepage"/>156 87 <div> 157 88 <xsl:choose> … … 166 97 </xsl:choose> 167 98 <xsl:call-template name="language.attribute"/> 99 <xsl:call-template name="sect1.titlepage"/> 168 100 <xsl:apply-templates/> 169 101 <xsl:apply-templates select="sect1info" mode="svn-keys"/>
Note:
See TracChangeset
for help on using the changeset viewer.