5c245a484194ab1f563a959785d893fd669e740a
[privoxy.git] / doc / source / ldp.dsl
1 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [\r
2 <!ENTITY % html "IGNORE">\r
3 <![%html;[\r
4 <!ENTITY % print "IGNORE">\r
5 <!ENTITY docbook.dsl SYSTEM "/usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl" CDATA dsssl>\r
6 ]]>\r
7 <!ENTITY % print "INCLUDE">\r
8 <![%print;[\r
9 <!ENTITY docbook.dsl SYSTEM "/usr/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl" CDATA dsssl>\r
10 ]]>\r
11 ]>\r
12 \r
13 <!--\r
14 \r
15 ;; borrowed from the LDP stylesheet, with modifications, HB.\r
16 ;; Added support for css 03/20/02, and other mods.\r
17 \r
18 -->\r
19 \r
20 <style-sheet>\r
21 \r
22 <style-specification id="print" use="docbook">\r
23 <style-specification-body> \r
24 \r
25 ;; ==============================\r
26 ;; customize the print stylesheet\r
27 ;; ==============================\r
28 \r
29 </style-specification-body>\r
30 </style-specification>\r
31 \r
32 \r
33 <!--\r
34 ;; ===================================================\r
35 ;; customize the html stylesheet; borrowed from Cygnus\r
36 ;; at http://sourceware.cygnus.com/ (cygnus-both.dsl)\r
37 ;; ===================================================\r
38 -->\r
39 \r
40 <style-specification id="html" use="docbook">\r
41 <style-specification-body> \r
42 \r
43 ;; this is necessary because right now jadetex does not understand\r
44 ;; symbolic entities, whereas things work well with numeric entities.\r
45 (declare-characteristic preserve-sdata?\r
46   "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"\r
47   #f)\r
48 \r
49 ;; put the legal notice in a separate file\r
50 (define %generate-legalnotice-link%\r
51   #t)\r
52 \r
53 ;; use graphics in admonitions, and have their path be "stylesheet-images"\r
54 ;; NO: they do not yet look very good\r
55 (define %admon-graphics-path%\r
56   "./stylesheet-images/")\r
57 \r
58 (define %admon-graphics%\r
59   #f)\r
60 \r
61 (define %funcsynopsis-decoration%\r
62   ;; make funcsynopsis look pretty\r
63   #t)\r
64 \r
65 (define %html-ext%\r
66   ".html")\r
67 \r
68 (define %generate-article-toc% \r
69   ;; Should a Table of Contents be produced for Articles?\r
70   ;; If true, a Table of Contents will be generated for each 'Article'.\r
71   #t)\r
72 \r
73 (define %root-filename%\r
74   ;; The filename of the root HTML document (e.g, "index").\r
75   "index")\r
76 \r
77 (define %generate-part-toc%\r
78   #t)\r
79 \r
80 (define %shade-verbatim%\r
81   #t)\r
82 \r
83 (define %use-id-as-filename%\r
84   ;; Use ID attributes as name for component HTML files?\r
85   #t)\r
86 \r
87 (define %graphic-default-extension% \r
88   "gif")\r
89 \r
90 (define %section-autolabel%\r
91   ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)\r
92   #t)\r
93 \r
94 ;; HB changed TOC depth to 3 levels.\r
95 (define (toc-depth nd)\r
96   3)\r
97 \r
98 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
99 \r
100 (define %body-attr% \r
101   ;; REFENTRY body-attr\r
102   ;; PURP What attributes should be hung off of BODY?\r
103   ;; DESC\r
104   ;; A list of the the BODY attributes that should be generated.\r
105   ;; The format is a list of lists, each interior list contains the\r
106   ;; name and value of a BODY attribute.\r
107   ;; /DESC\r
108   ;; AUTHOR N/A\r
109   ;; /REFENTRY\r
110   (list\r
111    (list "BGCOLOR" "#EEEEEE")\r
112    (list "TEXT" "#000000")\r
113    (list "LINK" "#0000FF")\r
114    (list "VLINK" "#840084")\r
115    (list "ALINK" "#0000FF")))\r
116 \r
117 (define %stylesheet%\r
118   ;; REFENTRY stylesheet\r
119   ;; PURP Name of the stylesheet to use\r
120   ;; DESC\r
121   ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to\r
122   ;; suppress the stylesheet LINK.\r
123   ;; /DESC\r
124   ;; AUTHOR N/A\r
125   ;; /REFENTRY\r
126   "../ijb_docs.css")\r
127 \r
128 (define %stylesheet-type%\r
129   ;; REFENTRY stylesheet-type\r
130   ;; PURP The type of the stylesheet to use\r
131   ;; DESC\r
132   ;; The type of the stylesheet to place in the HTML LINK TAG.\r
133   ;; /DESC\r
134   ;; AUTHOR N/A\r
135   ;; /REFENTRY\r
136   "text/css")\r
137 \r
138 (define %css-liststyle-alist%\r
139   ;; REFENTRY css-liststyle-alist\r
140   ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS\r
141   ;; DESC\r
142   ;; If '%css-decoration%' is turned on then the list-style-type property of\r
143   ;; list items will be set to reflect the list item style selected in the\r
144   ;; DocBook instance.  This associative list maps the style type names used\r
145   ;; in your instance to the appropriate CSS names.  If no mapping exists,\r
146   ;; the name from the instance will be used.\r
147   ;; /DESC\r
148   ;; AUTHOR N/A\r
149   ;; /REFENTRY\r
150   '(("bullet" "disc")\r
151     ("box" "square")))\r
152 \r
153 (define %css-decoration%\r
154   ;; REFENTRY css-decoration\r
155   ;; PURP Enable CSS decoration of elements\r
156   ;; DESC\r
157   ;; If '%css-decoration%' is turned on then HTML elements produced by the\r
158   ;; stylesheet may be decorated with STYLE attributes.  For example, the\r
159   ;; LI tags produced for list items may include a fragment of CSS in the\r
160   ;; STYLE attribute which sets the CSS property "list-style-type".\r
161   ;; /DESC\r
162   ;; AUTHOR N/A\r
163   ;; /REFENTRY\r
164   #t)\r
165 \r
166 \r
167 </style-specification-body>\r
168 </style-specification>\r
169 \r
170 <external-specification id="docbook" document="docbook.dsl">\r
171 \r
172 </style-sheet>\r