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-screen-lines%
33 ;; Indent lines in a 'Screen'?
34 ;; "#f" or string to be used as the indent on 'screen'
37 (define %callout-fancy-bug%
38 ;; Use fancy callout bugs?
41 (define %chap-app-running-heads%
42 ;; Generate running headers and footers on chapter-level elements?
45 (define %chap-app-running-head-autolabel%
46 ;; Put chapter labels in running heads?
49 ;; this is the 'print' portion of the stylesheet so we want to
50 ;; convert ampersand-code strings to character values
51 (declare-characteristic preserve-sdata?
52 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
55 ;; put the legal notice in a separate file
56 (define %generate-legalnotice-link%
59 ;; use graphics in admonitions, and have their path be "stylesheet-images"
60 ;; NO: they do not yet look very good
61 (define %admon-graphics-path%
62 "./stylesheet-images/")
64 (define %admon-graphics%
67 (define %funcsynopsis-decoration%
68 ;; make funcsynopsis look pretty
71 ;;(define %shade-verbatim%
74 (define %section-autolabel% #t)
75 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
77 ;; HB changed TOC depth to 3 levels.
78 (define (toc-depth nd)
81 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
85 ;; PURP What attributes should be hung off of BODY?
87 ;; A list of the BODY attributes that should be generated.
88 ;; The format is a list of lists, each interior list contains the
89 ;; name and value of a BODY attribute.
94 (list "BGCOLOR" "#EEEEEE")
95 (list "TEXT" "#000000")
96 (list "LINK" "#0000FF")
97 (list "VLINK" "#840084")
98 (list "ALINK" "#0000FF")))
101 ;; REFENTRY stylesheet
102 ;; PURP Name of the stylesheet to use
104 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
105 ;; suppress the stylesheet LINK.
111 (define %stylesheet-type%
112 ;; REFENTRY stylesheet-type
113 ;; PURP The type of the stylesheet to use
115 ;; The type of the stylesheet to place in the HTML LINK TAG.
121 (define %css-liststyle-alist%
122 ;; REFENTRY css-liststyle-alist
123 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
125 ;; If '%css-decoration%' is turned on then the list-style-type property of
126 ;; list items will be set to reflect the list item style selected in the
127 ;; DocBook instance. This associative list maps the style type names used
128 ;; in your instance to the appropriate CSS names. If no mapping exists,
129 ;; the name from the instance will be used.
136 (define %css-decoration%
137 ;; REFENTRY css-decoration
138 ;; PURP Enable CSS decoration of elements
140 ;; If '%css-decoration%' is turned on then HTML elements produced by the
141 ;; stylesheet may be decorated with STYLE attributes. For example, the
142 ;; LI tags produced for list items may include a fragment of CSS in the
143 ;; STYLE attribute which sets the CSS property "list-style-type".
151 (define %generate-part-toc%
154 (define %generate-article-toc%
155 ;; Should a Table of Contents be produced for Articles?
156 ;; If true, a Table of Contents will be generated for each 'Article'.
159 (define %generate-part-toc-on-titlepage%
160 ;; Should the Part TOC appear on the Part title page?
163 ;;Do you want a separate page for the title?
164 (define %generate-article-titlepage-on-separate-page%
167 ;;Do you want the article toc on the titlepage or separate?
168 (define %generate-article-toc-on-titlepage%
171 ;;Titlepage Separate?
172 ;; This is the one that makes TOC only on first page!! hal.
173 (define (chunk-skip-first-element-list)
176 (define %body-start-indent%
177 ;; Default indent of body text
180 (define %para-indent-firstpara%
181 ;; First line start-indent for the first paragraph
186 (define %para-indent%
187 ;; First line start-indent for paragraphs (other than the first)
190 (define %block-start-indent%
191 ;; Extra start-indent for block-elements
194 ;;Define distance between paragraphs
198 ;; with swa2 no effects
202 ;;Define distance between block elements (figures, tables, etc.).
205 ;; (* %para-sep% 2.0))
207 (define %hyphenation%
208 ;; Allow automatic hyphenation?
211 (define %left-margin% 5pi)
212 (define %right-margin% 5pi)
213 (define %top-margin% 5pi)
214 (define %bottom-margin% 5pi)
215 (define %footer-margin% 2pi)
216 (define %header-margin% 2pi)
218 (define %line-spacing-factor% 1.3)
219 ;; Factor used to calculate leading
220 ;; The leading is calculated by multiplying the current font size by the
221 ;; '%line-spacing-factor%'. For example, if the font size is 10pt and
222 ;; the '%line-spacing-factor%' is 1.1, then the text will be
223 ;; printed "10-on-11".
225 (define %head-before-factor%
226 ;; Factor used to calculate space above a title
227 ;; The space before a title is calculated by multiplying the font size
228 ;; used in the title by the '%head-before-factor%'.
232 (define %head-after-factor%
233 ;; Factor used to calculate space below a title
234 ;; The space after a title is calculated by multiplying the font size used
235 ;; in the title by the '%head-after-factor%'.
238 (define %input-whitespace-treatment% 'collapse)
240 (define ($generate-article-lot-list$)
241 ;; Which Lists of Titles should be produced for Articles?
245 </style-specification-body>
246 </style-specification>
249 <style-specification id="print-notoc" use="print">
250 <style-specification-body>
252 ;; ===================================================
253 ;; Variant without TOC
254 ;; ===================================================
256 (define %generate-article-toc%
257 ;; Should a Table of Contents be produced for Articles?
258 ;; If true, a Table of Contents will be generated for each 'Article'.
261 </style-specification-body>
262 </style-specification>
266 ;; ===================================================
267 ;; customize the html stylesheet; borrowed from Cygnus
268 ;; at http://sourceware.cygnus.com/ (cygnus-both.dsl)
269 ;; ===================================================
272 <style-specification id="html" use="docbook">
273 <style-specification-body>
275 ;; this is the 'html' portion of the stylesheet so we want to keep the
276 ;; ampersand-code strings and let the browser convert them to characters
277 (declare-characteristic preserve-sdata?
278 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
281 ;; put the legal notice in a separate file
282 (define %generate-legalnotice-link%
285 ;; use graphics in admonitions, and have their path be "stylesheet-images"
286 ;; NO: they do not yet look very good
287 (define %admon-graphics-path%
288 "./stylesheet-images/")
290 (define %admon-graphics%
293 (define %funcsynopsis-decoration%
294 ;; make funcsynopsis look pretty
300 (define %generate-article-toc%
301 ;; Should a Table of Contents be produced for Articles?
302 ;; If true, a Table of Contents will be generated for each 'Article'.
305 ;; HB added next three statements 05/03/02.
306 ;;Do you want a separate page for the title?
307 (define %generate-article-titlepage-on-separate-page%
310 ;;Do you want the article toc on the titlepage or separate?
311 (define %generate-article-toc-on-titlepage%
314 ;;Titlepage Separate?
315 ;; This is the one that makes TOC only on first page!! hal.
316 (define (chunk-skip-first-element-list)
319 (define %root-filename%
320 ;; The filename of the root HTML document (e.g, "index").
323 (define %generate-part-toc%
326 (define %shade-verbatim%
329 (define %use-id-as-filename%
330 ;; Use ID attributes as name for component HTML files?
333 (define %graphic-default-extension%
336 (define %section-autolabel% #t)
337 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
339 ;; HB changed TOC depth to 3 levels.
340 (define (toc-depth nd)
343 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
346 ;; REFENTRY body-attr
347 ;; PURP What attributes should be hung off of BODY?
349 ;; A list of the the BODY attributes that should be generated.
350 ;; The format is a list of lists, each interior list contains the
351 ;; name and value of a BODY attribute.
356 (list "BGCOLOR" "#EEEEEE")
357 (list "TEXT" "#000000")
358 (list "LINK" "#0000FF")
359 (list "VLINK" "#840084")
360 (list "ALINK" "#0000FF")))
363 ;; REFENTRY stylesheet
364 ;; PURP Name of the stylesheet to use
366 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
367 ;; suppress the stylesheet LINK.
373 (define %stylesheet-type%
374 ;; REFENTRY stylesheet-type
375 ;; PURP The type of the stylesheet to use
377 ;; The type of the stylesheet to place in the HTML LINK TAG.
383 (define %css-liststyle-alist%
384 ;; REFENTRY css-liststyle-alist
385 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
387 ;; If '%css-decoration%' is turned on then the list-style-type property of
388 ;; list items will be set to reflect the list item style selected in the
389 ;; DocBook instance. This associative list maps the style type names used
390 ;; in your instance to the appropriate CSS names. If no mapping exists,
391 ;; the name from the instance will be used.
398 (define %css-decoration%
399 ;; REFENTRY css-decoration
400 ;; PURP Enable CSS decoration of elements
402 ;; If '%css-decoration%' is turned on then HTML elements produced by the
403 ;; stylesheet may be decorated with STYLE attributes. For example, the
404 ;; LI tags produced for list items may include a fragment of CSS in the
405 ;; STYLE attribute which sets the CSS property "list-style-type".
411 ;; HB added 2008-01-19
412 (define %html-header-tags%
413 '(("META" ("HTTP-EQUIV" "Content-Type") ("CONTENT" "text/html;
414 charset=ISO-8859-1"))))
416 </style-specification-body>
417 </style-specification>
420 <style-specification id="html-notoc" use="html">
421 <style-specification-body>
423 ;; ===================================================
424 ;; Vairant without TOC for the Homepage --oes 24/05/02
425 ;; ===================================================
427 (define %generate-article-toc%
428 ;; Should a Table of Contents be produced for Articles?
429 ;; If true, a Table of Contents will be generated for each 'Article'.
432 </style-specification-body>
433 </style-specification>
435 <external-specification id="docbook" document="docbook.dsl">