1 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
2 <!ENTITY % html "IGNORE">
4 <!ENTITY % print "IGNORE">
5 <!ENTITY docbook.dsl SYSTEM "@DKPREFIX@/html/docbook.dsl" CDATA dsssl>
7 <!ENTITY % print "INCLUDE">
9 <!ENTITY docbook.dsl SYSTEM "@DKPREFIX@/print/docbook.dsl" CDATA dsssl>
15 ;; borrowed from the LDP stylesheet, with modifications, HB.
16 ;; Added support for css 03/20/02, and other mods.
22 <style-specification id="print" use="docbook">
23 <style-specification-body>
25 ;; ==============================
26 ;; customize the print stylesheet
27 ;; ==============================
29 ;; see http://docbook.sourceforge.net/projects/dsssl/doc/print.html
32 (define %indent-programlisting-lines%
33 ;; Indent lines in a 'ProgramListing'?
34 ;; "#f" or string to be used as the indent on 'programlisting'
37 (define %indent-screen-lines%
38 ;; Indent lines in a 'Screen'?
39 ;; "#f" or string to be used as the indent on 'screen'
42 (define %callout-fancy-bug%
43 ;; Use fancy callout bugs?
46 (define %chap-app-running-heads%
47 ;; Generate running headers and footers on chapter-level elements?
50 (define %chap-app-running-head-autolabel%
51 ;; Put chapter labels in running heads?
54 ;; this is the 'print' portion of the stylesheet so we want to
55 ;; convert ampersand-code strings to character values
56 (declare-characteristic preserve-sdata?
57 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
60 ;; put the legal notice in a separate file
61 (define %generate-legalnotice-link%
64 ;; use graphics in admonitions, and have their path be "stylesheet-images"
65 ;; NO: they do not yet look very good
66 (define %admon-graphics-path%
67 "./stylesheet-images/")
69 (define %admon-graphics%
72 (define %funcsynopsis-decoration%
73 ;; make funcsynopsis look pretty
76 ;;(define %shade-verbatim%
79 (define %section-autolabel% #t)
80 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
82 ;; HB changed TOC depth to 3 levels.
83 (define (toc-depth nd)
86 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
90 ;; PURP What attributes should be hung off of BODY?
92 ;; A list of the BODY attributes that should be generated.
93 ;; The format is a list of lists, each interior list contains the
94 ;; name and value of a BODY attribute.
99 (list "BGCOLOR" "#EEEEEE")
100 (list "TEXT" "#000000")
101 (list "LINK" "#0000FF")
102 (list "VLINK" "#840084")
103 (list "ALINK" "#0000FF")))
106 ;; REFENTRY stylesheet
107 ;; PURP Name of the stylesheet to use
109 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
110 ;; suppress the stylesheet LINK.
116 (define %stylesheet-type%
117 ;; REFENTRY stylesheet-type
118 ;; PURP The type of the stylesheet to use
120 ;; The type of the stylesheet to place in the HTML LINK TAG.
126 (define %css-liststyle-alist%
127 ;; REFENTRY css-liststyle-alist
128 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
130 ;; If '%css-decoration%' is turned on then the list-style-type property of
131 ;; list items will be set to reflect the list item style selected in the
132 ;; DocBook instance. This associative list maps the style type names used
133 ;; in your instance to the appropriate CSS names. If no mapping exists,
134 ;; the name from the instance will be used.
141 (define %css-decoration%
142 ;; REFENTRY css-decoration
143 ;; PURP Enable CSS decoration of elements
145 ;; If '%css-decoration%' is turned on then HTML elements produced by the
146 ;; stylesheet may be decorated with STYLE attributes. For example, the
147 ;; LI tags produced for list items may include a fragment of CSS in the
148 ;; STYLE attribute which sets the CSS property "list-style-type".
156 (define %generate-part-toc%
159 (define %generate-article-toc%
160 ;; Should a Table of Contents be produced for Articles?
161 ;; If true, a Table of Contents will be generated for each 'Article'.
164 (define %generate-part-toc-on-titlepage%
165 ;; Should the Part TOC appear on the Part title page?
168 ;;Do you want a separate page for the title?
169 (define %generate-article-titlepage-on-separate-page%
172 ;;Do you want the article toc on the titlepage or separate?
173 (define %generate-article-toc-on-titlepage%
176 ;;Titlepage Separate?
177 ;; This is the one that makes TOC only on first page!! hal.
178 (define (chunk-skip-first-element-list)
181 (define %body-start-indent%
182 ;; Default indent of body text
185 (define %para-indent-firstpara%
186 ;; First line start-indent for the first paragraph
191 (define %para-indent%
192 ;; First line start-indent for paragraphs (other than the first)
195 (define %block-start-indent%
196 ;; Extra start-indent for block-elements
199 ;;Define distance between paragraphs
203 ;; with swa2 no effects
207 ;;Define distance between block elements (figures, tables, etc.).
210 ;; (* %para-sep% 2.0))
212 (define %hyphenation%
213 ;; Allow automatic hyphenation?
216 (define %left-margin% 5pi)
217 (define %right-margin% 5pi)
218 (define %top-margin% 5pi)
219 (define %bottom-margin% 5pi)
220 (define %footer-margin% 2pi)
221 (define %header-margin% 2pi)
223 (define %line-spacing-factor% 1.3)
224 ;; Factor used to calculate leading
225 ;; The leading is calculated by multiplying the current font size by the
226 ;; '%line-spacing-factor%'. For example, if the font size is 10pt and
227 ;; the '%line-spacing-factor%' is 1.1, then the text will be
228 ;; printed "10-on-11".
230 (define %head-before-factor%
231 ;; Factor used to calculate space above a title
232 ;; The space before a title is calculated by multiplying the font size
233 ;; used in the title by the '%head-before-factor%'.
237 (define %head-after-factor%
238 ;; Factor used to calculate space below a title
239 ;; The space after a title is calculated by multiplying the font size used
240 ;; in the title by the '%head-after-factor%'.
243 (define %input-whitespace-treatment% 'collapse)
245 (define ($generate-article-lot-list$)
246 ;; Which Lists of Titles should be produced for Articles?
250 </style-specification-body>
251 </style-specification>
254 <style-specification id="print-notoc" use="print">
255 <style-specification-body>
257 ;; ===================================================
258 ;; Variant without TOC
259 ;; ===================================================
261 (define %generate-article-toc%
262 ;; Should a Table of Contents be produced for Articles?
263 ;; If true, a Table of Contents will be generated for each 'Article'.
266 </style-specification-body>
267 </style-specification>
271 ;; ===================================================
272 ;; customize the html stylesheet; borrowed from Cygnus
273 ;; at http://sourceware.cygnus.com/ (cygnus-both.dsl)
274 ;; ===================================================
277 <style-specification id="html" use="docbook">
278 <style-specification-body>
280 ;; this is the 'html' portion of the stylesheet so we want to keep the
281 ;; ampersand-code strings and let the browser convert them to characters
282 (declare-characteristic preserve-sdata?
283 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
286 (define %indent-programlisting-lines%
287 ;; Indent lines in a 'ProgramListing'?
288 ;; "#f" or string to be used as the indent on 'programlisting'
291 (define %indent-screen-lines%
292 ;; Indent lines in a 'Screen'?
293 ;; "#f" or string to be used as the indent on 'screen'
296 ;; put the legal notice in a separate file
297 (define %generate-legalnotice-link%
300 ;; use graphics in admonitions, and have their path be "stylesheet-images"
301 ;; NO: they do not yet look very good
302 (define %admon-graphics-path%
303 "./stylesheet-images/")
305 (define %admon-graphics%
308 (define %funcsynopsis-decoration%
309 ;; make funcsynopsis look pretty
315 (define %generate-article-toc%
316 ;; Should a Table of Contents be produced for Articles?
317 ;; If true, a Table of Contents will be generated for each 'Article'.
320 ;; HB added next three statements 05/03/02.
321 ;;Do you want a separate page for the title?
322 (define %generate-article-titlepage-on-separate-page%
325 ;;Do you want the article toc on the titlepage or separate?
326 (define %generate-article-toc-on-titlepage%
329 ;;Titlepage Separate?
330 ;; This is the one that makes TOC only on first page!! hal.
331 (define (chunk-skip-first-element-list)
334 (define %root-filename%
335 ;; The filename of the root HTML document (e.g, "index").
338 (define %generate-part-toc%
341 (define %shade-verbatim%
344 (define %use-id-as-filename%
345 ;; Use ID attributes as name for component HTML files?
348 (define %graphic-default-extension%
351 (define %section-autolabel% #t)
352 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
354 ;; HB changed TOC depth to 3 levels.
355 (define (toc-depth nd)
358 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
361 ;; REFENTRY body-attr
362 ;; PURP What attributes should be hung off of BODY?
364 ;; A list of the the BODY attributes that should be generated.
365 ;; The format is a list of lists, each interior list contains the
366 ;; name and value of a BODY attribute.
371 (list "BGCOLOR" "#EEEEEE")
372 (list "TEXT" "#000000")
373 (list "LINK" "#0000FF")
374 (list "VLINK" "#840084")
375 (list "ALINK" "#0000FF")))
378 ;; REFENTRY stylesheet
379 ;; PURP Name of the stylesheet to use
381 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
382 ;; suppress the stylesheet LINK.
388 (define %stylesheet-type%
389 ;; REFENTRY stylesheet-type
390 ;; PURP The type of the stylesheet to use
392 ;; The type of the stylesheet to place in the HTML LINK TAG.
398 (define %css-liststyle-alist%
399 ;; REFENTRY css-liststyle-alist
400 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
402 ;; If '%css-decoration%' is turned on then the list-style-type property of
403 ;; list items will be set to reflect the list item style selected in the
404 ;; DocBook instance. This associative list maps the style type names used
405 ;; in your instance to the appropriate CSS names. If no mapping exists,
406 ;; the name from the instance will be used.
413 (define %css-decoration%
414 ;; REFENTRY css-decoration
415 ;; PURP Enable CSS decoration of elements
417 ;; If '%css-decoration%' is turned on then HTML elements produced by the
418 ;; stylesheet may be decorated with STYLE attributes. For example, the
419 ;; LI tags produced for list items may include a fragment of CSS in the
420 ;; STYLE attribute which sets the CSS property "list-style-type".
426 ;; HB added 2008-01-19
427 (define %html-header-tags%
428 '(("META" ("HTTP-EQUIV" "Content-Type") ("CONTENT" "text/html;
429 charset=ISO-8859-1"))))
431 </style-specification-body>
432 </style-specification>
435 <style-specification id="html-notoc" use="html">
436 <style-specification-body>
438 ;; ===================================================
439 ;; Vairant without TOC for the Homepage --oes 24/05/02
440 ;; ===================================================
442 (define %generate-article-toc%
443 ;; Should a Table of Contents be produced for Articles?
444 ;; If true, a Table of Contents will be generated for each 'Article'.
447 </style-specification-body>
448 </style-specification>
450 <external-specification id="docbook" document="docbook.dsl">