1 <!-- This file defines the DocBook-utils Style Sheet for DocBook
2 Eric Bischoff <eric@caldera.de>
5 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
6 <!ENTITY % html "IGNORE">
8 <!ENTITY % print "IGNORE">
9 <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA dsssl>
11 <!ENTITY % print "INCLUDE">
13 <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA dsssl>
19 <STYLE-SPECIFICATION ID="UTILS" USE="DOCBOOK">
20 <STYLE-SPECIFICATION-BODY>
21 ;; ===================================================================
23 ;; (Generic currently means: both print and html)
24 (define (chunk-element-list)
25 (list (normalize "preface")
27 (normalize "appendix")
29 (normalize "glossary")
30 (normalize "bibliography")
32 (normalize "colophon")
33 (normalize "setindex")
34 (normalize "reference")
35 (normalize "refentry")
37 ; We would like to split up in chapters, not in sect1's...
40 (normalize "book") ;; just in case nothing else matches...
41 (normalize "set") ;; sets are definitely chunks...
44 (define %chapter-autolabel% #t)
45 (define %section-autolabel% #t)
46 (define (toc-depth nd) 3)
48 (define %html-ext% ".html") ;; default extension for html output files
49 (define %html-prefix% "") ;; prefix for all filenames generated (except root)
50 (define %use-id-as-filename% #t)
52 ; === HTML settings ===
53 (define %html-pubid% "-//W3C//DTD HTML 4.01 Transitional//EN") ;; Nearly true :-(
56 ; === Media objects ===
57 (define preferred-mediaobject-extensions ;; this magic allows to use different graphical
58 (list "png" "jpg" "jpeg")) ;; formats for printing and putting online
59 (define acceptable-mediaobject-extensions
60 (list "bmp" "gif" "eps" "epsf" "avi" "mpg" "mpeg" "qt"))
61 (define preferred-mediaobject-notations
62 (list "PNG" "JPG" "JPEG"))
63 (define acceptable-mediaobject-notations
64 (list "EPS" "BMP" "GIF" "linespecific"))
66 (define %admon-graphics% #t) ;; use symbols for Caution|Important|Note|Tip|Warning
69 (define %generate-book-titlepage% #t)
70 (define %generate-book-toc% #t)
71 (define ($generate-chapter-toc$) #f) ;; never generate a chapter TOC in books
73 ; === Articles only ===
74 (define %generate-article-titlepage% #t)
75 (define %generate-article-toc% #t) ;; make TOC
77 </STYLE-SPECIFICATION-BODY>
78 </STYLE-SPECIFICATION>
80 <EXTERNAL-SPECIFICATION ID="DOCBOOK" DOCUMENT="docbook.dsl">