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