[c873d807] | 1 | <?xml version="1.0" encoding="ASCII"?>
|
---|
| 2 | <!--This file was created automatically by html2xhtml-->
|
---|
| 3 | <!--from the HTML stylesheets.-->
|
---|
| 4 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
|
---|
| 5 |
|
---|
| 6 | <!-- ********************************************************************
|
---|
[15c7d39] | 7 | $Id: division.xsl 9366 2012-05-12 23:44:25Z bobstayton $
|
---|
[c873d807] | 8 | ********************************************************************
|
---|
| 9 |
|
---|
| 10 | This file is part of the XSL DocBook Stylesheet distribution.
|
---|
| 11 | See ../README or http://docbook.sf.net/release/xsl/current/ for
|
---|
| 12 | copyright and other information.
|
---|
| 13 |
|
---|
| 14 | ******************************************************************** -->
|
---|
| 15 |
|
---|
| 16 | <!-- ==================================================================== -->
|
---|
| 17 |
|
---|
| 18 | <xsl:template match="set">
|
---|
| 19 | <xsl:call-template name="id.warning"/>
|
---|
| 20 |
|
---|
[15c7d39] | 21 | <xsl:element name="{$div.element}" namespace="http://www.w3.org/1999/xhtml">
|
---|
| 22 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
| 23 | <xsl:call-template name="id.attribute">
|
---|
| 24 | <xsl:with-param name="conditional" select="0"/>
|
---|
| 25 | </xsl:call-template>
|
---|
[c873d807] | 26 | <xsl:call-template name="dir">
|
---|
| 27 | <xsl:with-param name="inherit" select="1"/>
|
---|
| 28 | </xsl:call-template>
|
---|
[15c7d39] | 29 | <xsl:call-template name="xml.language.attribute"/>
|
---|
[c873d807] | 30 | <xsl:if test="$generate.id.attributes != 0">
|
---|
| 31 | <xsl:attribute name="id">
|
---|
| 32 | <xsl:call-template name="object.id"/>
|
---|
| 33 | </xsl:attribute>
|
---|
| 34 | </xsl:if>
|
---|
| 35 |
|
---|
| 36 | <xsl:call-template name="set.titlepage"/>
|
---|
| 37 |
|
---|
| 38 | <xsl:variable name="toc.params">
|
---|
| 39 | <xsl:call-template name="find.path.params">
|
---|
| 40 | <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
|
---|
| 41 | </xsl:call-template>
|
---|
| 42 | </xsl:variable>
|
---|
| 43 |
|
---|
| 44 | <xsl:call-template name="make.lots">
|
---|
| 45 | <xsl:with-param name="toc.params" select="$toc.params"/>
|
---|
| 46 | <xsl:with-param name="toc">
|
---|
| 47 | <xsl:call-template name="set.toc">
|
---|
| 48 | <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
|
---|
| 49 | </xsl:call-template>
|
---|
| 50 | </xsl:with-param>
|
---|
| 51 | </xsl:call-template>
|
---|
| 52 |
|
---|
| 53 | <xsl:apply-templates/>
|
---|
[15c7d39] | 54 | </xsl:element>
|
---|
[c873d807] | 55 | </xsl:template>
|
---|
| 56 |
|
---|
| 57 | <xsl:template match="set/setinfo"/>
|
---|
| 58 | <xsl:template match="set/title"/>
|
---|
| 59 | <xsl:template match="set/titleabbrev"/>
|
---|
| 60 | <xsl:template match="set/subtitle"/>
|
---|
| 61 |
|
---|
| 62 | <!-- ==================================================================== -->
|
---|
| 63 |
|
---|
| 64 | <xsl:template match="book">
|
---|
| 65 | <xsl:call-template name="id.warning"/>
|
---|
| 66 |
|
---|
| 67 | <div>
|
---|
[15c7d39] | 68 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
| 69 | <xsl:call-template name="id.attribute">
|
---|
| 70 | <xsl:with-param name="conditional" select="0"/>
|
---|
[c873d807] | 71 | </xsl:call-template>
|
---|
| 72 |
|
---|
| 73 | <xsl:call-template name="book.titlepage"/>
|
---|
| 74 |
|
---|
| 75 | <xsl:apply-templates select="dedication" mode="dedication"/>
|
---|
[15c7d39] | 76 | <xsl:apply-templates select="acknowledgements" mode="acknowledgements"/>
|
---|
[c873d807] | 77 |
|
---|
| 78 | <xsl:variable name="toc.params">
|
---|
| 79 | <xsl:call-template name="find.path.params">
|
---|
| 80 | <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
|
---|
| 81 | </xsl:call-template>
|
---|
| 82 | </xsl:variable>
|
---|
| 83 |
|
---|
| 84 | <xsl:call-template name="make.lots">
|
---|
| 85 | <xsl:with-param name="toc.params" select="$toc.params"/>
|
---|
| 86 | <xsl:with-param name="toc">
|
---|
| 87 | <xsl:call-template name="division.toc">
|
---|
| 88 | <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
|
---|
| 89 | </xsl:call-template>
|
---|
| 90 | </xsl:with-param>
|
---|
| 91 | </xsl:call-template>
|
---|
| 92 |
|
---|
| 93 | <xsl:apply-templates/>
|
---|
| 94 | </div>
|
---|
| 95 | </xsl:template>
|
---|
| 96 |
|
---|
| 97 | <xsl:template match="book/bookinfo"/>
|
---|
| 98 | <xsl:template match="book/info"/>
|
---|
| 99 | <xsl:template match="book/title"/>
|
---|
| 100 | <xsl:template match="book/titleabbrev"/>
|
---|
| 101 | <xsl:template match="book/subtitle"/>
|
---|
| 102 |
|
---|
| 103 | <!-- ==================================================================== -->
|
---|
| 104 |
|
---|
| 105 | <xsl:template match="part">
|
---|
| 106 | <xsl:call-template name="id.warning"/>
|
---|
| 107 |
|
---|
| 108 | <div>
|
---|
[15c7d39] | 109 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
| 110 | <xsl:call-template name="id.attribute">
|
---|
| 111 | <xsl:with-param name="conditional" select="0"/>
|
---|
[c873d807] | 112 | </xsl:call-template>
|
---|
| 113 |
|
---|
| 114 | <xsl:call-template name="part.titlepage"/>
|
---|
| 115 |
|
---|
| 116 | <xsl:variable name="toc.params">
|
---|
| 117 | <xsl:call-template name="find.path.params">
|
---|
| 118 | <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
|
---|
| 119 | </xsl:call-template>
|
---|
| 120 | </xsl:variable>
|
---|
| 121 | <xsl:if test="not(partintro) and contains($toc.params, 'toc')">
|
---|
| 122 | <xsl:call-template name="division.toc"/>
|
---|
| 123 | </xsl:if>
|
---|
| 124 | <xsl:apply-templates/>
|
---|
| 125 | </div>
|
---|
| 126 | </xsl:template>
|
---|
| 127 |
|
---|
| 128 | <xsl:template match="part" mode="make.part.toc">
|
---|
| 129 | <xsl:call-template name="division.toc"/>
|
---|
| 130 | </xsl:template>
|
---|
| 131 |
|
---|
| 132 | <xsl:template match="reference" mode="make.part.toc">
|
---|
| 133 | <xsl:call-template name="division.toc"/>
|
---|
| 134 | </xsl:template>
|
---|
| 135 |
|
---|
| 136 | <xsl:template match="part/docinfo"/>
|
---|
| 137 | <xsl:template match="part/partinfo"/>
|
---|
| 138 | <xsl:template match="part/info"/>
|
---|
| 139 | <xsl:template match="part/title"/>
|
---|
| 140 | <xsl:template match="part/titleabbrev"/>
|
---|
| 141 | <xsl:template match="part/subtitle"/>
|
---|
| 142 |
|
---|
| 143 | <xsl:template match="partintro">
|
---|
| 144 | <xsl:call-template name="id.warning"/>
|
---|
| 145 |
|
---|
| 146 | <div>
|
---|
[15c7d39] | 147 | <xsl:call-template name="common.html.attributes"/>
|
---|
| 148 | <xsl:call-template name="id.attribute">
|
---|
| 149 | <xsl:with-param name="conditional" select="0"/>
|
---|
[c873d807] | 150 | </xsl:call-template>
|
---|
| 151 |
|
---|
| 152 | <xsl:call-template name="partintro.titlepage"/>
|
---|
| 153 | <xsl:apply-templates/>
|
---|
| 154 |
|
---|
| 155 | <xsl:variable name="toc.params">
|
---|
| 156 | <xsl:call-template name="find.path.params">
|
---|
| 157 | <xsl:with-param name="node" select="parent::*"/>
|
---|
| 158 | <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
|
---|
| 159 | </xsl:call-template>
|
---|
| 160 | </xsl:variable>
|
---|
| 161 | <xsl:if test="contains($toc.params, 'toc')">
|
---|
| 162 | <!-- not ancestor::part because partintro appears in reference -->
|
---|
| 163 | <xsl:apply-templates select="parent::*" mode="make.part.toc"/>
|
---|
| 164 | </xsl:if>
|
---|
| 165 | <xsl:call-template name="process.footnotes"/>
|
---|
| 166 | </div>
|
---|
| 167 | </xsl:template>
|
---|
| 168 |
|
---|
| 169 | <xsl:template match="partintro/title"/>
|
---|
| 170 | <xsl:template match="partintro/titleabbrev"/>
|
---|
| 171 | <xsl:template match="partintro/subtitle"/>
|
---|
| 172 |
|
---|
| 173 | <xsl:template match="partintro/title" mode="partintro.title.mode">
|
---|
| 174 | <h2>
|
---|
| 175 | <xsl:apply-templates/>
|
---|
| 176 | </h2>
|
---|
| 177 | </xsl:template>
|
---|
| 178 |
|
---|
| 179 | <xsl:template match="partintro/subtitle" mode="partintro.title.mode">
|
---|
| 180 | <h3>
|
---|
[15c7d39] | 181 | <em xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></em>
|
---|
[c873d807] | 182 | </h3>
|
---|
| 183 | </xsl:template>
|
---|
| 184 |
|
---|
| 185 | <!-- ==================================================================== -->
|
---|
| 186 |
|
---|
| 187 | <xsl:template match="book" mode="division.number">
|
---|
| 188 | <xsl:number from="set" count="book" format="1."/>
|
---|
| 189 | </xsl:template>
|
---|
| 190 |
|
---|
| 191 | <xsl:template match="part" mode="division.number">
|
---|
| 192 | <xsl:number from="book" count="part" format="I."/>
|
---|
| 193 | </xsl:template>
|
---|
| 194 |
|
---|
| 195 | <!-- ==================================================================== -->
|
---|
| 196 |
|
---|
| 197 | <xsl:template name="division.title">
|
---|
| 198 | <xsl:param name="node" select="."/>
|
---|
| 199 |
|
---|
| 200 | <h1>
|
---|
| 201 | <xsl:attribute name="class">title</xsl:attribute>
|
---|
[15c7d39] | 202 | <xsl:call-template name="anchor">
|
---|
| 203 | <xsl:with-param name="node" select="$node"/>
|
---|
| 204 | <xsl:with-param name="conditional" select="0"/>
|
---|
| 205 | </xsl:call-template>
|
---|
| 206 | <xsl:apply-templates select="$node" mode="object.title.markup">
|
---|
[c873d807] | 207 | <xsl:with-param name="allow-anchors" select="1"/>
|
---|
| 208 | </xsl:apply-templates>
|
---|
| 209 | </h1>
|
---|
| 210 | </xsl:template>
|
---|
| 211 |
|
---|
| 212 | </xsl:stylesheet>
|
---|