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'?
36 (define %callout-fancy-bug%
37 ;; Use fancy callout bugs?
40 (define %chap-app-running-heads%
41 ;; Generate running headers and footers on chapter-level elements?
44 (define %chap-app-running-head-autolabel%
45 ;; Put chapter labels in running heads?
48 ;; this is necessary because right now jadetex does not understand
49 ;; symbolic entities, whereas things work well with numeric entities.
50 (declare-characteristic preserve-sdata?
51 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
54 ;; put the legal notice in a separate file
55 (define %generate-legalnotice-link%
58 ;; use graphics in admonitions, and have their path be "stylesheet-images"
59 ;; NO: they do not yet look very good
60 (define %admon-graphics-path%
61 "./stylesheet-images/")
63 (define %admon-graphics%
66 (define %funcsynopsis-decoration%
67 ;; make funcsynopsis look pretty
70 ;;(define %shade-verbatim%
73 (define %section-autolabel% #t)
74 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
76 ;; HB changed TOC depth to 3 levels.
77 (define (toc-depth nd)
80 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
84 ;; PURP What attributes should be hung off of BODY?
86 ;; A list of the BODY attributes that should be generated.
87 ;; The format is a list of lists, each interior list contains the
88 ;; name and value of a BODY attribute.
93 (list "BGCOLOR" "#EEEEEE")
94 (list "TEXT" "#000000")
95 (list "LINK" "#0000FF")
96 (list "VLINK" "#840084")
97 (list "ALINK" "#0000FF")))
100 ;; REFENTRY stylesheet
101 ;; PURP Name of the stylesheet to use
103 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
104 ;; suppress the stylesheet LINK.
110 (define %stylesheet-type%
111 ;; REFENTRY stylesheet-type
112 ;; PURP The type of the stylesheet to use
114 ;; The type of the stylesheet to place in the HTML LINK TAG.
120 (define %css-liststyle-alist%
121 ;; REFENTRY css-liststyle-alist
122 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
124 ;; If '%css-decoration%' is turned on then the list-style-type property of
125 ;; list items will be set to reflect the list item style selected in the
126 ;; DocBook instance. This associative list maps the style type names used
127 ;; in your instance to the appropriate CSS names. If no mapping exists,
128 ;; the name from the instance will be used.
135 (define %css-decoration%
136 ;; REFENTRY css-decoration
137 ;; PURP Enable CSS decoration of elements
139 ;; If '%css-decoration%' is turned on then HTML elements produced by the
140 ;; stylesheet may be decorated with STYLE attributes. For example, the
141 ;; LI tags produced for list items may include a fragment of CSS in the
142 ;; STYLE attribute which sets the CSS property "list-style-type".
150 (define %generate-part-toc%
153 (define %generate-article-toc%
154 ;; Should a Table of Contents be produced for Articles?
155 ;; If true, a Table of Contents will be generated for each 'Article'.
158 (define %generate-part-toc-on-titlepage%
159 ;; Should the Part TOC appear on the Part title page?
162 ;;Do you want a separate page for the title?
163 (define %generate-article-titlepage-on-separate-page%
166 ;;Do you want the article toc on the titlepage or separate?
167 (define %generate-article-toc-on-titlepage%
170 ;;Titlepage Separate?
171 ;; This is the one that makes TOC only on first page!! hal.
172 (define (chunk-skip-first-element-list)
175 (define %body-start-indent%
176 ;; Default indent of body text
179 (define %para-indent-firstpara%
180 ;; First line start-indent for the first paragraph
185 (define %para-indent%
186 ;; First line start-indent for paragraphs (other than the first)
189 (define %block-start-indent%
190 ;; Extra start-indent for block-elements
193 ;;Define distance between paragraphs
197 ;; with swa2 no effects
201 ;;Define distance between block elements (figures, tables, etc.).
204 ;; (* %para-sep% 2.0))
206 (define %hyphenation%
207 ;; Allow automatic hyphenation?
210 (define %left-margin% 5pi)
211 (define %right-margin% 5pi)
212 (define %top-margin% 5pi)
213 (define %bottom-margin% 5pi)
214 (define %footer-margin% 2pi)
215 (define %header-margin% 2pi)
217 (define %line-spacing-factor% 1.3)
218 ;; Factor used to calculate leading
219 ;; The leading is calculated by multiplying the current font size by the
220 ;; '%line-spacing-factor%'. For example, if the font size is 10pt and
221 ;; the '%line-spacing-factor%' is 1.1, then the text will be
222 ;; printed "10-on-11".
224 (define %head-before-factor%
225 ;; Factor used to calculate space above a title
226 ;; The space before a title is calculated by multiplying the font size
227 ;; used in the title by the '%head-before-factor%'.
231 (define %head-after-factor%
232 ;; Factor used to calculate space below a title
233 ;; The space after a title is calculated by multiplying the font size used
234 ;; in the title by the '%head-after-factor%'.
237 (define %input-whitespace-treatment% 'collapse)
239 (define ($generate-article-lot-list$)
240 ;; Which Lists of Titles should be produced for Articles?
244 </style-specification-body>
245 </style-specification>
249 ;; ===================================================
250 ;; customize the html stylesheet; borrowed from Cygnus
251 ;; at http://sourceware.cygnus.com/ (cygnus-both.dsl)
252 ;; ===================================================
255 <style-specification id="html" use="docbook">
256 <style-specification-body>
258 ;; this is the 'html' portion of the stylesheet so we want to keep the
259 ;; ampersand-code strings and let the browser convert them to characters
260 (declare-characteristic preserve-sdata?
261 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
264 ;; put the legal notice in a separate file
265 (define %generate-legalnotice-link%
268 ;; use graphics in admonitions, and have their path be "stylesheet-images"
269 ;; NO: they do not yet look very good
270 (define %admon-graphics-path%
271 "./stylesheet-images/")
273 (define %admon-graphics%
276 (define %funcsynopsis-decoration%
277 ;; make funcsynopsis look pretty
283 (define %generate-article-toc%
284 ;; Should a Table of Contents be produced for Articles?
285 ;; If true, a Table of Contents will be generated for each 'Article'.
288 ;; HB added next three statements 05/03/02.
289 ;;Do you want a separate page for the title?
290 (define %generate-article-titlepage-on-separate-page%
293 ;;Do you want the article toc on the titlepage or separate?
294 (define %generate-article-toc-on-titlepage%
297 ;;Titlepage Separate?
298 ;; This is the one that makes TOC only on first page!! hal.
299 (define (chunk-skip-first-element-list)
302 (define %root-filename%
303 ;; The filename of the root HTML document (e.g, "index").
306 (define %generate-part-toc%
309 (define %shade-verbatim%
312 (define %use-id-as-filename%
313 ;; Use ID attributes as name for component HTML files?
316 (define %graphic-default-extension%
319 (define %section-autolabel% #t)
320 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
322 ;; HB changed TOC depth to 3 levels.
323 (define (toc-depth nd)
326 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
329 ;; REFENTRY body-attr
330 ;; PURP What attributes should be hung off of BODY?
332 ;; A list of the the BODY attributes that should be generated.
333 ;; The format is a list of lists, each interior list contains the
334 ;; name and value of a BODY attribute.
339 (list "BGCOLOR" "#EEEEEE")
340 (list "TEXT" "#000000")
341 (list "LINK" "#0000FF")
342 (list "VLINK" "#840084")
343 (list "ALINK" "#0000FF")))
346 ;; REFENTRY stylesheet
347 ;; PURP Name of the stylesheet to use
349 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
350 ;; suppress the stylesheet LINK.
356 (define %stylesheet-type%
357 ;; REFENTRY stylesheet-type
358 ;; PURP The type of the stylesheet to use
360 ;; The type of the stylesheet to place in the HTML LINK TAG.
366 (define %css-liststyle-alist%
367 ;; REFENTRY css-liststyle-alist
368 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
370 ;; If '%css-decoration%' is turned on then the list-style-type property of
371 ;; list items will be set to reflect the list item style selected in the
372 ;; DocBook instance. This associative list maps the style type names used
373 ;; in your instance to the appropriate CSS names. If no mapping exists,
374 ;; the name from the instance will be used.
381 (define %css-decoration%
382 ;; REFENTRY css-decoration
383 ;; PURP Enable CSS decoration of elements
385 ;; If '%css-decoration%' is turned on then HTML elements produced by the
386 ;; stylesheet may be decorated with STYLE attributes. For example, the
387 ;; LI tags produced for list items may include a fragment of CSS in the
388 ;; STYLE attribute which sets the CSS property "list-style-type".
394 ;; HB added 2008-01-19
395 (define %html-header-tags%
396 '(("META" ("HTTP-EQUIV" "Content-Type") ("CONTENT" "text/html;
397 charset=ISO-8859-1"))))
399 </style-specification-body>
400 </style-specification>
403 <style-specification id="html-notoc" use="html">
404 <style-specification-body>
406 ;; ===================================================
407 ;; Vairant without TOC for the Homepage --oes 24/05/02
408 ;; ===================================================
410 (define %generate-article-toc%
411 ;; Should a Table of Contents be produced for Articles?
412 ;; If true, a Table of Contents will be generated for each 'Article'.
415 </style-specification-body>
416 </style-specification>
418 <external-specification id="docbook" document="docbook.dsl">