~todd-deshane/openstack-manuals/working

« back to all changes in this revision

Viewing changes to doc/build/docbook-xsl-1.76.1/xhtml-1_1/division.xsl

  • Committer: Anne Gentle
  • Date: 2011-04-04 17:54:52 UTC
  • Revision ID: anne@openstack.org-20110404175452-gtth3hfrniqhpp5o
Switching from Ant builds to Maven, still working out kinks but should be functional

Show diffs side-by-side

added added

removed removed

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