-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoCustomization.xsl
More file actions
388 lines (360 loc) · 20.9 KB
/
foCustomization.xsl
File metadata and controls
388 lines (360 loc) · 20.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:d="http://docbook.org/ns/docbook" xmlns:date="http://exslt.org/dates-and-times">
<xsl:import href="urn:docbkx:stylesheet"/>
<!-- Abstract title should be NetApp blue -->
<xsl:attribute-set name="abstract.title.properties">
<xsl:attribute name="text-align">left</xsl:attribute>
<xsl:attribute name="color">#0067c5</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="book.titlepage.recto.style">
<xsl:attribute name="text-align">left</xsl:attribute>
<xsl:attribute name="color">#454545</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="root.properties">
<xsl:attribute name="font-family">Arial</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="table.table.properties">
<xsl:attribute name="table-layout">fixed</xsl:attribute>
<xsl:attribute name="width">100%</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="monospace.verbatim.properties">
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
<xsl:attribute name="font-size">
<xsl:choose>
<xsl:when test="processing-instruction('db-font-size')">
<xsl:value-of select="processing-instruction('db-font-size')"/>
</xsl:when>
<xsl:otherwise>inherit</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:attribute-set>
<xsl:template name="book.titlepage.verso"/>
<xsl:template name="book.titlepage.before.verso"/>
<xsl:template name="book.titlepage.recto">
<fo:block>
<fo:table inline-progression-dimension="100%" table-layout="fixed">
<fo:table-column column-width="1in"/>
<fo:table-column column-width="4in"/>
<fo:table-column column-width="1.5in"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>
<fo:external-graphic width="100%" content-width="scale-to-fit">
<xsl:attribute name="src">images/na_logo_vrt_2c_rgb.png</xsl:attribute>
</fo:external-graphic>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block/>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:external-graphic width="100%" content-width="scale-to-fit">
<xsl:attribute name="src">images/built_for_openstack.png</xsl:attribute>
</fo:external-graphic>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell number-columns-spanned="3">
<fo:block text-align="center" padding-top="36pt">
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:title"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block/>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2">
<fo:block text-align="left" color="#454545" padding-top="12pt">
<xsl:apply-templates mode="titlepage.mode" select="d:info/d:authorgroup/d:author"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block/>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2">
<fo:block text-align="left" padding-top="8pt">
<xsl:apply-templates select="d:info/d:pubdate/processing-instruction()"/>
<xsl:text> | </xsl:text>
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block/>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2">
<fo:block text-align="left" padding-top="320pt">
<xsl:apply-templates select="d:info/d:abstract"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:template>
<xsl:template match="d:title" mode="book.titlepage.recto.auto.mode">
<fo:inline color="#0067c5" font-size="20">
<xsl:apply-templates mode="titlepage.mode"/>
</fo:inline>
</xsl:template>
<!-- ToC -->
<xsl:attribute-set name="toc.line.properties">
<xsl:attribute name="font-weight">
<xsl:choose>
<xsl:when test="self::d:chapter or self::d:appendix">bold</xsl:when>
<xsl:otherwise>normal</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="color">
<xsl:choose>
<xsl:when test="self::d:chapter or self::d:appendix">#0067c5</xsl:when>
<xsl:otherwise>#454545</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:attribute-set>
<!-- no headers -->
<xsl:template name="header.content"/>
<!-- footers -->
<xsl:param name="symbol.font.family">Arial</xsl:param>
<xsl:param name="dingbat.font.family">Arial</xsl:param>
<xsl:param name="footer.column.widths">1 1 1</xsl:param>
<xsl:attribute-set name="footer.content.properties">
<xsl:attribute name="font-family">Arial</xsl:attribute>
<xsl:attribute name="font-weight">normal</xsl:attribute>
<xsl:attribute name="font-style">normal</xsl:attribute>
<xsl:attribute name="font-size">10pt</xsl:attribute>
</xsl:attribute-set>
<xsl:template name="footer.content">
<xsl:param name="pageclass" select="''"/>
<xsl:param name="sequence" select="''"/>
<xsl:param name="position" select="''"/>
<xsl:param name="gentext-key" select="''"/>
<fo:block>
<xsl:choose>
<xsl:when test="$sequence != 'blank' and $gentext-key != 'colophon' and $position = 'left'">
<fo:page-number/>
</xsl:when>
<xsl:when test="$sequence != 'blank' and $gentext-key != 'colophon' and $position = 'center'">
<xsl:value-of select="/d:book/d:titleabbrev/text()"/>
</xsl:when>
</xsl:choose>
</fo:block>
</xsl:template>
<!-- Table header should have blue background, white font -->
<xsl:template name="table.row.properties">
<xsl:variable name="rownum">
<xsl:number from="d:tbody" count="d:tr"/>
</xsl:variable>
<xsl:attribute name="font-size">8</xsl:attribute>
<xsl:choose>
<xsl:when test="ancestor::d:thead">
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="color">#FFFFFF</xsl:attribute>
<xsl:attribute name="background-color">#0067c5</xsl:attribute>
</xsl:when>
<xsl:when test="$rownum mod 2 = 0">
<xsl:attribute name="background-color">#C8C9C7</xsl:attribute>
</xsl:when>
</xsl:choose>
</xsl:template>
<!-- Center captions above figures, tables, etc. -->
<xsl:template name="formal.title.properties">
<xsl:if test="not(self::d:table)">
<xsl:attribute name="text-align">center</xsl:attribute>
</xsl:if>
</xsl:template>
<!-- Text should be NetApp deep gray -->
<xsl:attribute-set name="root.properties">
<xsl:attribute name="color">#454545</xsl:attribute>
</xsl:attribute-set>
<!-- Chapter titles should be NetApp blue -->
<xsl:attribute-set name="component.title.properties">
<xsl:attribute name="color">#0067c5</xsl:attribute>
</xsl:attribute-set>
<!-- Hyperlinks should be NetApp blue -->
<xsl:attribute-set name="xref.properties">
<xsl:attribute name="color">#0067c5</xsl:attribute>
<xsl:attribute name="text-decoration">underline</xsl:attribute>
</xsl:attribute-set>
<!-- Customize admonitions -->
<xsl:attribute-set name="admonition.title.properties">
<xsl:attribute name="font-style">italic</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="graphical.admonition.properties">
<xsl:attribute name="border-top">0.5pt solid black</xsl:attribute>
<xsl:attribute name="border-bottom">0.5pt solid black</xsl:attribute>
<xsl:attribute name="padding-top">4pt</xsl:attribute>
<xsl:attribute name="padding-bottom">4pt</xsl:attribute>
</xsl:attribute-set>
<!-- Format Version History Table -->
<xsl:attribute-set name="revhistory.title.properties">
<xsl:attribute name="font-size">18pt</xsl:attribute>
<xsl:attribute name="text-align">left</xsl:attribute>
<xsl:attribute name="color">#0067c5</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="revhistory.table.header.properties">
<xsl:attribute name="text-align">center</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="color">#FFFFFF</xsl:attribute>
<xsl:attribute name="background-color">#0067c5</xsl:attribute>
<xsl:attribute name="border-start-style">solid</xsl:attribute>
<xsl:attribute name="border-start-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-start-color">black</xsl:attribute>
<xsl:attribute name="border-top-style">solid</xsl:attribute>
<xsl:attribute name="border-top-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-top-color">black</xsl:attribute>
<xsl:attribute name="border-bottom-style">solid</xsl:attribute>
<xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-bottom-color">black</xsl:attribute>
<xsl:attribute name="border-end-style">solid</xsl:attribute>
<xsl:attribute name="border-end-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-end-color">black</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="revhistory.table.cell.properties">
<xsl:attribute name="padding-start">2pt</xsl:attribute>
<xsl:attribute name="padding-end">2pt</xsl:attribute>
<xsl:attribute name="padding-top">2pt</xsl:attribute>
<xsl:attribute name="padding-bottom">2pt</xsl:attribute>
<xsl:attribute name="border-start-style">solid</xsl:attribute>
<xsl:attribute name="border-start-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-start-color">black</xsl:attribute>
<xsl:attribute name="border-top-style">solid</xsl:attribute>
<xsl:attribute name="border-top-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-top-color">black</xsl:attribute>
<xsl:attribute name="border-bottom-style">solid</xsl:attribute>
<xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-bottom-color">black</xsl:attribute>
<xsl:attribute name="border-end-style">solid</xsl:attribute>
<xsl:attribute name="border-end-width">0.5pt</xsl:attribute>
<xsl:attribute name="border-end-color">black</xsl:attribute>
</xsl:attribute-set>
<xsl:template match="d:revhistory">
<fo:block xsl:use-attribute-sets="revhistory.title.properties">
<xsl:apply-templates select="d:title|d:info/d:title" mode="titlepage.mode"/>
</fo:block>
<fo:table table-layout="fixed" width="100%" xsl:use-attribute-sets="revhistory.table.properties">
<fo:table-column column-number="1" column-width="1in"/>
<fo:table-column column-number="2" column-width="1.25in"/>
<fo:table-column column-number="3" column-width="4.25in"/>
<fo:table-body start-indent="0pt" end-indent="0pt">
<fo:table-row>
<fo:table-cell>
<fo:block xsl:use-attribute-sets="revhistory.table.header.properties">Version</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block xsl:use-attribute-sets="revhistory.table.header.properties">Date</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block xsl:use-attribute-sets="revhistory.table.header.properties">Document Version History</fo:block>
</fo:table-cell>
</fo:table-row>
<xsl:apply-templates select="*[not(self::d:title)]"/>
</fo:table-body>
</fo:table>
</xsl:template>
<xsl:template match="d:revhistory/d:revision">
<xsl:variable name="revnumber" select="d:revnumber"/>
<xsl:variable name="revdate" select="d:date"/>
<xsl:variable name="revremark" select="d:revremark|d:revdescription"/>
<fo:table-row>
<fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
<fo:block>
<xsl:if test="$revnumber">
<xsl:text>Version</xsl:text>
<xsl:call-template name="gentext.space"/>
<xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
</xsl:if>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
<fo:block>
<xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
</fo:block>
</fo:table-cell>
<fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties">
<fo:block>
<xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>
<!-- Format Back Page -->
<xsl:template name="colophon.titlepage.recto">
<fo:block>
<fo:table inline-progression-dimension="100%" table-layout="fixed">
<fo:table-column column-width="1in"/>
<fo:table-column column-width="4in"/>
<fo:table-column column-width="1.5in"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell number-columns-spanned="3">
<fo:block text-align="left" padding-top="36pt">
<fo:inline color="#0067c5" font-size="14">
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:title"/>
</fo:inline>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell number-columns-spanned="3">
<fo:block>
<xsl:apply-templates mode="titlepage.mode" select="d:subtitle"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell number-columns-spanned="3">
<fo:block padding-top="24pt">
<xsl:apply-templates select="/d:book/d:info/d:revhistory"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<!-- note: some of the padding-top size may have to be shrunk in the future as the version history table grows in order to fit all content on a single page -->
<fo:table-row>
<fo:table-cell number-columns-spanned="3">
<fo:block padding-top="64pt" font-size="8pt">
Some content enclosed in this document was derived from the <fo:basic-link external-destination="url(http://docs.openstack.org/icehouse/config-reference/)"><fo:inline color="#0067c5" text-decoration="underline">OpenStack Configuration Reference</fo:inline></fo:basic-link>, available under the Apache License, Version 2.0. You may obtain a copy of the License at <fo:basic-link external-destination="url(http://www.apache.org/licenses/LICENSE-2.0)"><fo:inline color="#0067c5" text-decoration="underline">http://www.apache.org/licenses/LICENSE-2.0</fo:inline></fo:basic-link>.
</fo:block>
</fo:table-cell>
</fo:table-row>
<!-- note: some of the padding-top size may have to be shrunk in the future as the version history table grows in order to fit all content on a single page -->
<fo:table-row>
<fo:table-cell number-columns-spanned="3">
<fo:block padding-top="24pt" font-size="9pt">
NetApp provides no representations or warranties regarding the accuracy, reliability, or serviceability of any information or recommendations provided in this publication, or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS, and the use of this information or the implementation of any recommendations or techniques herein is a customer’s responsibility and depends on the customer’s ability to evaluate and integrate them into the customer’s operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.
</fo:block>
<fo:block padding-top="4pt" padding-bottom="4pt">
<fo:external-graphic width="1in" content-width="scale-to-fit">
<xsl:attribute name="src">images/tag-line.jpg</xsl:attribute>
</fo:external-graphic>
</fo:block>
</fo:table-cell>
</fo:table-row>
<!-- note: some of the padding-top size may have to be shrunk in the future as the version history table grows in order to fit all content on a single page -->
<fo:table-row>
<fo:table-cell>
<fo:block padding-top="24pt">
<!-- this should be shifted into left margin rather than overlap to right -->
<fo:external-graphic width="100%" content-width="scale-to-fit">
<xsl:attribute name="src">images/logo_url.png</xsl:attribute>
</fo:external-graphic>
</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2">
<fo:block padding-top="24pt" font-size="8pt">
© <xsl:value-of select="concat(date:year(), ' ')"/> <xsl:value-of select="/d:book/d:info/d:copyright/d:holder"/> All rights reserved. No portions of this document may be reproduced without prior written consent of NetApp, Inc. Specifications are subject to change without notice. NetApp, the NetApp logo, Go further, faster, DataFabric, Data ONTAP, FlexClone, MultiStore, OnCommand, ONTAPI, and vFiler are trademarks or registered trademarks of NetApp, Inc. in the United States and/or other countries. Windows is a registered trademark of Microsoft Corporation. Linux is a registered trademark of Linus Torvalds. Java is a registered trademark of Oracle Corporation. All other brands or products are trademarks or registered trademarks of their respective holders and should be treated as such.
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:template>
</xsl:stylesheet>