VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/plugins/legacypdf/xslfo/dita2fo-parms.xsl@ 99040

最後變更 在這個檔案從99040是 98584,由 vboxsync 提交於 2 年 前

Docs: bugref:10302. Setting svn properties of DITA-OT library.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 13.4 KB
 
1<?xml version='1.0'?>
2<!-- This file is part of the DITA Open Toolkit project hosted on
3 Sourceforge.net. See the accompanying license.txt file for
4 applicable licenses.-->
5<!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. -->
6
7<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8 xmlns:fo="http://www.w3.org/1999/XSL/Format"
9 version='1.0'>
10
11
12<!-- SETTINGS -->
13<xsl:variable name="trace">no</xsl:variable> <!--set string to 'yes' to turn on trace -->
14
15
16<!-- USER SPECIFIC DECLARED VALUES (change as needed) -->
17
18<!-- copyright string for placing into meta/header/footer of each generated topic -->
19<xsl:variable name="copyright">Copyright 2004</xsl:variable>
20
21
22<!-- "GLOBAL" DECLARATIONS -->
23
24<xsl:variable name="img-path"></xsl:variable> <!-- this will be specific to your delivery tree! -->
25<xsl:param name="dflt-ext">.jpg</xsl:param> <!-- this sets whatever your preferred extension is for your graphics -->
26 <!-- For Antenna House, override to ".jpg" -->
27
28
29<!-- Filler for A-name anchors (empty links)-->
30<xsl:variable name="afill"></xsl:variable>
31
32<!-- Filler for empty table entries -->
33<xsl:variable name="efill">.</xsl:variable>
34
35<!-- Setup for translation/localization -->
36<xsl:variable name="StringFile" select="document('../../../xsl/common/strings.xml')"/>
37
38
39<!-- DEFAULT VALUES FOR EXTERNALLY MODIFIABLE PARAMETERS -->
40
41<!-- /IP = default image path parameter (null)-->
42<xsl:param name="IP" select="''"/>
43
44<!-- /ARTLBL = default "output artwork filenames" processing parameter ('no')-->
45<xsl:param name="ARTLBL" select="'no'"/><!-- "no" and "yes" are valid values; non-'yes' is ignored -->
46
47<!-- /DRAFT = default "hide draft & cleanup content" processing parameter ('no' = hide them)-->
48<xsl:param name="DRAFT" select="'no'"/><!-- "no" and "yes" are valid values; non-'yes' is ignored -->
49
50<!-- /WORKDIR = the working directory that contains the document being transformed.
51 Needed as a directory prefix for the @conref and @href "document()" function calls.
52 default is './')-->
53<xsl:param name="WORKDIR" select="'./'"/>
54
55<!-- DITAEXT file extension name of dita topic file -->
56<xsl:param name="DITAEXT" select="'.xml'"/>
57
58<!-- CONTROL PARAMETERS -->
59<!-- offset -->
60<xsl:param name="basic-start-indent">72pt</xsl:param>
61<xsl:param name="basic-end-indent">24pt</xsl:param>
62<xsl:param name="basic-first-indent">84pt</xsl:param>
63
64
65<!-- ========== FORMATTER DECLARATIONS AND GLOBALS ========== -->
66
67<!-- set up CSS-like attribute sets -->
68<!-- tempted to use the shorthand form? if so, beware of "silent overrides" -->
69
70<xsl:attribute-set name="topic" >
71 <xsl:attribute name="font-family">Helvetica</xsl:attribute>
72 <xsl:attribute name="font-size">9pt</xsl:attribute>
73</xsl:attribute-set>
74
75<!-- set up common attributes for all page definitions -->
76<xsl:attribute-set name="common-grid">
77 <xsl:attribute name="page-width">51pc</xsl:attribute> <!-- A4: 210mm -->
78 <xsl:attribute name="page-height">66pc</xsl:attribute> <!-- A4: 297mm -->
79 <xsl:attribute name="margin-top">3pc</xsl:attribute>
80 <xsl:attribute name="margin-bottom">3pc</xsl:attribute>
81 <xsl:attribute name="margin-left">6pc</xsl:attribute>
82 <xsl:attribute name="margin-right">6pc</xsl:attribute>
83</xsl:attribute-set>
84
85<!-- add line-height for multi-line headings? -->
86
87<xsl:attribute-set name="h0.title" >
88 <xsl:attribute name="break-before">page</xsl:attribute>
89 <xsl:attribute name="margin-top">0pc</xsl:attribute>
90 <xsl:attribute name="margin-bottom">1.4pc</xsl:attribute>
91 <xsl:attribute name="font-size">16pt</xsl:attribute>
92 <xsl:attribute name="font-weight">bold</xsl:attribute>
93</xsl:attribute-set>
94
95<xsl:attribute-set name="topictitle1" >
96 <xsl:attribute name="break-before">page</xsl:attribute>
97 <xsl:attribute name="margin-top">0pc</xsl:attribute>
98 <xsl:attribute name="margin-bottom">1.4pc</xsl:attribute>
99 <xsl:attribute name="font-size">16pt</xsl:attribute>
100 <xsl:attribute name="font-weight">bold</xsl:attribute>
101</xsl:attribute-set>
102
103<xsl:attribute-set name="topictitle2" >
104 <xsl:attribute name="padding-top">1pc</xsl:attribute>
105 <xsl:attribute name="margin-bottom">5pt</xsl:attribute>
106 <xsl:attribute name="font-size">14pt</xsl:attribute>
107 <xsl:attribute name="font-weight">bold</xsl:attribute>
108</xsl:attribute-set>
109
110<xsl:attribute-set name="topictitle3" >
111 <xsl:attribute name="padding-top">1pc</xsl:attribute>
112 <xsl:attribute name="margin-bottom">2pt</xsl:attribute>
113 <xsl:attribute name="font-size">12pt</xsl:attribute>
114 <xsl:attribute name="font-weight">bold</xsl:attribute>
115</xsl:attribute-set>
116
117<xsl:attribute-set name="topictitle4" >
118 <xsl:attribute name="font-size">9pt</xsl:attribute>
119 <xsl:attribute name="font-weight">bold</xsl:attribute>
120 <xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/></xsl:attribute>
121 <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
122</xsl:attribute-set>
123
124
125<xsl:attribute-set name="topictitle5" >
126 <xsl:attribute name="font-size">11pt</xsl:attribute>
127 <xsl:attribute name="font-weight">bold</xsl:attribute>
128 <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
129 <xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/></xsl:attribute>
130</xsl:attribute-set>
131
132<xsl:attribute-set name="topictitle6" >
133 <xsl:attribute name="font-size">11pt</xsl:attribute>
134 <xsl:attribute name="font-style">italic</xsl:attribute>
135 <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
136 <xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/></xsl:attribute>
137</xsl:attribute-set>
138
139
140<xsl:attribute-set name="section.title" >
141 <xsl:attribute name="space-before">1em</xsl:attribute>
142 <xsl:attribute name="color">black</xsl:attribute>
143 <xsl:attribute name="font-size">11pt</xsl:attribute>
144 <xsl:attribute name="font-weight">bold</xsl:attribute>
145 <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
146 <xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/></xsl:attribute>
147</xsl:attribute-set>
148
149<xsl:attribute-set name="unused.section.title">
150 <xsl:attribute name="space-before">1em</xsl:attribute>
151 <xsl:attribute name="space-before.precedence">1</xsl:attribute>
152 <xsl:attribute name="space-after">1em</xsl:attribute>
153 <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
154 <xsl:attribute name="end-indent"><xsl:value-of select="$basic-end-indent"/></xsl:attribute>
155</xsl:attribute-set>
156
157
158<!-- p-->
159<xsl:attribute-set name="p">
160 <xsl:attribute name="font-size">10pt</xsl:attribute>
161 <xsl:attribute name="text-indent">0em</xsl:attribute>
162 <xsl:attribute name="space-before">0.6em</xsl:attribute>
163 <xsl:attribute name="space-after">0.6em</xsl:attribute>
164 <!--xsl:attribute name="text-align">justify</xsl:attribute-->
165</xsl:attribute-set>
166
167<!-- p-->
168<xsl:attribute-set name="top.p">
169 <xsl:attribute name="font-size">10pt</xsl:attribute>
170 <xsl:attribute name="text-indent">0em</xsl:attribute>
171 <xsl:attribute name="space-before">0.6em</xsl:attribute>
172 <xsl:attribute name="space-after">0.6em</xsl:attribute>
173 <!--xsl:attribute name="text-align">justify</xsl:attribute-->
174</xsl:attribute-set>
175
176<!-- p-->
177<xsl:attribute-set name="divlike.p">
178 <xsl:attribute name="font-size">10pt</xsl:attribute>
179 <xsl:attribute name="text-indent">0em</xsl:attribute>
180 <xsl:attribute name="space-before">0em</xsl:attribute>
181 <xsl:attribute name="space-after">0.6em</xsl:attribute>
182 <!--xsl:attribute name="text-align">justify</xsl:attribute-->
183</xsl:attribute-set>
184
185<xsl:attribute-set name="lq" >
186 <xsl:attribute name="font-size">10pt</xsl:attribute>
187 <!--xsl:attribute name="background-color">antiquewhite</xsl:attribute-->
188 <!--xsl:attribute name="font-style">italic</xsl:attribute-->
189 <xsl:attribute name="space-before">10pt</xsl:attribute>
190 <xsl:attribute name="space-after">10pt</xsl:attribute>
191 <xsl:attribute name="padding-left">6pt</xsl:attribute>
192 <xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/> + 20pt</xsl:attribute>
193 <xsl:attribute name="end-indent"><xsl:value-of select="$basic-end-indent"/> + 20pt</xsl:attribute>
194 <xsl:attribute name="text-align">left</xsl:attribute>
195 <xsl:attribute name="border-style">solid</xsl:attribute>
196 <xsl:attribute name="border-color">black</xsl:attribute>
197 <xsl:attribute name="border-width">thin</xsl:attribute>
198</xsl:attribute-set>
199
200
201<!-- footnote-->
202<xsl:attribute-set name="footnote">
203 <xsl:attribute name="font-family">Helvetica</xsl:attribute>
204 <xsl:attribute name="font-size">8pt</xsl:attribute>
205 <xsl:attribute name="line-height">10pt</xsl:attribute>
206 <xsl:attribute name="text-indent">0em</xsl:attribute>
207 <xsl:attribute name="space-before">0em</xsl:attribute>
208 <xsl:attribute name="space-after">0.6em</xsl:attribute>
209 <xsl:attribute name="start-indent">0in</xsl:attribute>
210 <!--xsl:attribute name="end-indent"><xsl:value-of select="$basic-end-indent"/></xsl:attribute-->
211 <xsl:attribute name="text-align">justify</xsl:attribute>
212</xsl:attribute-set>
213
214
215<!-- note -->
216<xsl:attribute-set name="note" >
217 <xsl:attribute name="font-size">10pt</xsl:attribute>
218 <xsl:attribute name="background-color">antiquewhite</xsl:attribute>
219 <xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/></xsl:attribute>
220 <xsl:attribute name="end-indent"><xsl:value-of select="$basic-end-indent"/></xsl:attribute>
221</xsl:attribute-set>
222
223
224<!-- ul-->
225<xsl:attribute-set name="ul">
226 <xsl:attribute name="text-indent">0em</xsl:attribute>
227 <xsl:attribute name="space-before">0.6em</xsl:attribute>
228 <xsl:attribute name="space-after">0.6em</xsl:attribute>
229</xsl:attribute-set>
230
231<xsl:attribute-set name="dd.p">
232 <xsl:attribute name="font-size">10pt</xsl:attribute>
233 <xsl:attribute name="start-indent">0em</xsl:attribute>
234</xsl:attribute-set>
235
236<xsl:attribute-set name="dd.cell" >
237 <xsl:attribute name="font-size">10pt</xsl:attribute>
238 <xsl:attribute name="space-before">0.3em</xsl:attribute>
239 <xsl:attribute name="space-after">0.5em</xsl:attribute>
240 <xsl:attribute name="start-indent">2em</xsl:attribute>
241 <!--xsl:attribute name="end-indent"><xsl:value-of select="$basic-end-indent"/> + 0.5em</xsl:attribute-->
242</xsl:attribute-set>
243
244
245<xsl:attribute-set name="dt" >
246 <xsl:attribute name="font-size">10pt</xsl:attribute>
247 <xsl:attribute name="font-weight">bold</xsl:attribute>
248 <xsl:attribute name="text-indent">0em</xsl:attribute>
249 <xsl:attribute name="end-indent"><xsl:value-of select="$basic-end-indent"/></xsl:attribute>
250</xsl:attribute-set>
251
252<xsl:attribute-set name="dd" >
253 <xsl:attribute name="font-size">10pt</xsl:attribute>
254 <xsl:attribute name="space-before">0.3em</xsl:attribute>
255 <xsl:attribute name="space-after">0.5em</xsl:attribute>
256 <xsl:attribute name="start-indent">6pc</xsl:attribute>
257 <xsl:attribute name="end-indent"><xsl:value-of select="$basic-end-indent"/></xsl:attribute>
258</xsl:attribute-set>
259
260<xsl:attribute-set name="pre">
261 <!--xsl:attribute name="start-indent">inherit</xsl:attribute-->
262 <xsl:attribute name="space-before">1.2em</xsl:attribute>
263 <xsl:attribute name="space-after">0.8em</xsl:attribute>
264 <xsl:attribute name="white-space-treatment">preserve</xsl:attribute>
265 <xsl:attribute name="white-space-collapse">false</xsl:attribute>
266 <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
267 <xsl:attribute name="wrap-option">wrap</xsl:attribute>
268 <xsl:attribute name="background-color">#f0f0f0</xsl:attribute>
269 <xsl:attribute name="font-family">Courier</xsl:attribute>
270 <xsl:attribute name="line-height">106%</xsl:attribute>
271 <xsl:attribute name="font-size">9pt</xsl:attribute>
272</xsl:attribute-set>
273
274<xsl:attribute-set name="lines">
275 <xsl:attribute name="font-size">10pt</xsl:attribute>
276 <xsl:attribute name="space-before">0.8em</xsl:attribute>
277 <xsl:attribute name="space-after">0.8em</xsl:attribute>
278 <xsl:attribute name="white-space-treatment">preserve</xsl:attribute>
279 <xsl:attribute name="white-space-collapse">false</xsl:attribute>
280 <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
281 <xsl:attribute name="wrap-option">wrap</xsl:attribute>
282</xsl:attribute-set>
283
284<xsl:attribute-set name="fig">
285 <xsl:attribute name="space-before">0.8em</xsl:attribute>
286 <xsl:attribute name="space-after">0.8em</xsl:attribute>
287 <xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/></xsl:attribute>
288</xsl:attribute-set>
289
290
291<xsl:attribute-set name="figure.title" > <!-- unused-->
292 <xsl:attribute name="text-align">center</xsl:attribute>
293 <xsl:attribute name="space-before">3pt</xsl:attribute>
294 <xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/></xsl:attribute>
295 <xsl:attribute name="end-indent"><xsl:value-of select="$basic-end-indent"/></xsl:attribute>
296</xsl:attribute-set>
297
298
299<!-- frame properties used by fig, table -->
300
301<!-- separate the frame attributes into here; include them conditionally -->
302<xsl:attribute-set name="frameall">
303 <xsl:attribute name="border-style">solid</xsl:attribute>
304 <xsl:attribute name="border-width">1pt</xsl:attribute>
305 <xsl:attribute name="border-color">black</xsl:attribute>
306</xsl:attribute-set>
307
308<xsl:attribute-set name="frametop">
309 <xsl:attribute name="border-top-style">solid</xsl:attribute>
310 <xsl:attribute name="border-top-width">1pt</xsl:attribute>
311 <xsl:attribute name="border-top-color">black</xsl:attribute>
312</xsl:attribute-set>
313
314<xsl:attribute-set name="framebottom">
315 <xsl:attribute name="border-bottom-style">solid</xsl:attribute>
316 <xsl:attribute name="border-bottom-width">1pt</xsl:attribute>
317 <xsl:attribute name="border-bottom-color">black</xsl:attribute>
318</xsl:attribute-set>
319
320
321
322</xsl:stylesheet>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette