Update from Rick Segeberg <landude@comcast.net>
[kai/samba.git] / docs / docbook / samba.dsl
1 <!-- This file defines the DocBook-utils Style Sheet for DocBook
2      Eric Bischoff <eric@caldera.de>
3 -->
4
5 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
6   <!ENTITY % html "IGNORE">
7   <![%html; [
8         <!ENTITY % print "IGNORE">
9         <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA dsssl>
10   ]]>
11   <!ENTITY % print "INCLUDE">
12   <![%print; [
13         <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA dsssl>
14   ]]>
15 ]>
16
17 <STYLE-SHEET>
18
19   <STYLE-SPECIFICATION ID="UTILS" USE="DOCBOOK">
20     <STYLE-SPECIFICATION-BODY>
21 ;; ===================================================================
22 ;; Generic Parameters
23 ;; (Generic currently means: both print and html)
24 (define (chunk-element-list)
25   (list (normalize "preface")
26         (normalize "chapter")
27         (normalize "appendix") 
28         (normalize "article")
29         (normalize "glossary")
30         (normalize "bibliography")
31         (normalize "index")
32         (normalize "colophon")
33         (normalize "setindex")
34         (normalize "reference")
35         (normalize "refentry")
36         (normalize "part")
37 ; We would like to split up in chapters, not in sect1's...
38 ;       (normalize "sect1") 
39         (normalize "section") 
40         (normalize "book") ;; just in case nothing else matches...
41         (normalize "set")  ;; sets are definitely chunks...
42         ))
43
44 (define %chapter-autolabel% #t)
45 (define %section-autolabel% #t)
46 (define (toc-depth nd) 3)
47
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)
51
52 ; === HTML settings ===
53 (define %html-pubid% "-//W3C//DTD HTML 4.01 Transitional//EN") ;; Nearly true :-(
54 (define %html40% #t)
55
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"))                                                                                                    
65 ; === Rendering ===
66 (define %admon-graphics% #t)            ;; use symbols for Caution|Important|Note|Tip|Warning
67
68 ; === Books only ===
69 (define %generate-book-titlepage% #t)
70 (define %generate-book-toc% #t)
71 (define %generate-part-toc% #f)
72 (define %generate-part-titlepage% #t)
73 (define %generate-chapter-toc% #f)
74 (define %number-screen-lines% #t)
75 (define %generate-partintro-on-titlepage% #f)
76
77 ; === Articles only ===
78 (define %generate-article-titlepage% #t)
79 (define %generate-article-toc% #t)      ;; make TOC
80
81     </STYLE-SPECIFICATION-BODY>
82   </STYLE-SPECIFICATION>
83
84   <EXTERNAL-SPECIFICATION ID="DOCBOOK" DOCUMENT="docbook.dsl">
85
86 </STYLE-SHEET>