File: docbook.dsl

package info (click to toggle)
docbook-stylesheets 1.49-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 7,576 kB
  • ctags: 33
  • sloc: perl: 444; xml: 115; makefile: 98; sh: 27
file content (309 lines) | stat: -rw-r--r-- 11,045 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY % l10n-ca "INCLUDE">
<!ENTITY % l10n-cs "INCLUDE">
<!ENTITY % l10n-da "INCLUDE">
<!ENTITY % l10n-de "INCLUDE">
<!ENTITY % l10n-en "INCLUDE">
<!ENTITY % l10n-es "INCLUDE">
<!ENTITY % l10n-fi "INCLUDE">
<!ENTITY % l10n-fr "INCLUDE">
<!ENTITY % l10n-it "INCLUDE">
<!ENTITY % l10n-ja "INCLUDE">
<!ENTITY % l10n-nl "INCLUDE">
<!ENTITY % l10n-no "INCLUDE">
<!ENTITY % l10n-pl "INCLUDE">
<!ENTITY % l10n-pt "INCLUDE">
<!ENTITY % l10n-ro "INCLUDE">
<!ENTITY % l10n-ru "INCLUDE">
<!ENTITY % l10n-sk "INCLUDE">
<!ENTITY % l10n-sv "INCLUDE">

<![%l10n-ca;[
<!ENTITY dbl1ca   SYSTEM "dbl1ca.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1ca   SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-cs;[
<!ENTITY dbl1cs   SYSTEM "dbl1cs.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1cs   SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-da;[
<!ENTITY dbl1da   SYSTEM "dbl1da.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1da   SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-de;[
<!ENTITY dbl1de SYSTEM "dbl1de.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1de SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-en;[
<!ENTITY dbl1en SYSTEM "dbl1en.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1en SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-es;[
<!ENTITY dbl1es   SYSTEM "dbl1es.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1es   SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-fi;[
<!ENTITY dbl1fi   SYSTEM "dbl1fi.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1fi   SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-fr;[
<!ENTITY dbl1fr   SYSTEM "dbl1fr.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1fr   SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-it;[
<!ENTITY dbl1it   SYSTEM "dbl1it.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1it   SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-ja;[
<!ENTITY dbl1ja   SYSTEM "dbl1ja.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1ja   SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-nl;[
<!ENTITY dbl1nl   SYSTEM "dbl1nl.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1nl   SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-no;[
<!ENTITY dbl1no SYSTEM "dbl1no.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1no SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-pl;[
<!ENTITY dbl1pl SYSTEM "dbl1pl.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1pl SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-pt;[
<!ENTITY dbl1pt SYSTEM "dbl1pt.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1pt SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-ro;[
<!ENTITY dbl1ro   SYSTEM "dbl1ro.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1ro   SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-ru;[
<!ENTITY dbl1ru   SYSTEM "dbl1ru.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1ru   SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-sk;[
<!ENTITY dbl1sk SYSTEM "dbl1sk.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1sk SYSTEM "dbl1null.dsl" CDATA DSSSL>

<![%l10n-sv;[
<!ENTITY dbl1sv SYSTEM "dbl1sv.dsl" CDATA DSSSL>
]]>
<!ENTITY dbl1sv SYSTEM "dbl1null.dsl" CDATA DSSSL>

<!ENTITY dblib.dsl   
  PUBLIC "-//Norman Walsh//DOCUMENT DSSSL Library V2//EN" CDATA DSSSL>

<!ENTITY dbparam.dsl  SYSTEM "dbparam.dsl" CDATA DSSSL>

<!ENTITY cmndbl10n.dsl  SYSTEM "../common/dbl10n.dsl">
<!ENTITY dbl10n.dsl  SYSTEM "dbl10n.dsl">

<!ENTITY VERSION SYSTEM "../VERSION">

<!ENTITY dbcommon.dsl SYSTEM "../common/dbcommon.dsl">
<!ENTITY dbctable.dsl SYSTEM "../common/dbtable.dsl">
<!ENTITY dbadmon.dsl  SYSTEM "dbadmon.dsl">
<!ENTITY dbautoc.dsl  SYSTEM "dbautoc.dsl">
<!ENTITY dbbibl.dsl   SYSTEM "dbbibl.dsl">
<!ENTITY dbblock.dsl  SYSTEM "dbblock.dsl">
<!ENTITY dbcallou.dsl SYSTEM "dbcallou.dsl">
<!ENTITY dbcompon.dsl SYSTEM "dbcompon.dsl">
<!ENTITY dbdivis.dsl  SYSTEM "dbdivis.dsl">
<!ENTITY dbfootn.dsl  SYSTEM "dbfootn.dsl">
<!ENTITY dbgloss.dsl  SYSTEM "dbgloss.dsl">
<!ENTITY dbgraph.dsl  SYSTEM "dbgraph.dsl">
<!ENTITY dbhtml.dsl   SYSTEM "dbhtml.dsl">
<!ENTITY dbindex.dsl  SYSTEM "dbindex.dsl">
<!ENTITY dbinfo.dsl   SYSTEM "dbinfo.dsl">
<!ENTITY dbinline.dsl SYSTEM "dbinline.dsl">
<!ENTITY dblink.dsl   SYSTEM "dblink.dsl">
<!ENTITY dblists.dsl  SYSTEM "dblists.dsl">
<!ENTITY dblot.dsl    SYSTEM "dblot.dsl">
<!ENTITY dbmath.dsl   SYSTEM "dbmath.dsl">
<!ENTITY dbmsgset.dsl SYSTEM "dbmsgset.dsl">
<!ENTITY dbnavig.dsl  SYSTEM "dbnavig.dsl">
<!ENTITY dbchunk.dsl  SYSTEM "dbchunk.dsl">
<!ENTITY dbpi.dsl     SYSTEM "dbpi.dsl">
<!ENTITY dbprocdr.dsl SYSTEM "dbprocdr.dsl">
<!ENTITY dbrfntry.dsl SYSTEM "dbrfntry.dsl">
<!ENTITY dbsect.dsl   SYSTEM "dbsect.dsl">
<!ENTITY dbsynop.dsl  SYSTEM "dbsynop.dsl">
<!ENTITY dbtable.dsl  SYSTEM "dbtable.dsl">
<!ENTITY dbtitle.dsl  SYSTEM "dbtitle.dsl">
<!ENTITY dbttlpg.dsl  SYSTEM "dbttlpg.dsl">
<!ENTITY dbverb.dsl   SYSTEM "dbverb.dsl">
<!ENTITY version.dsl  SYSTEM "version.dsl">
<!ENTITY db31.dsl     SYSTEM "db31.dsl">
]>

<style-sheet>
<style-specification id="docbook" 
    use="ca cs da de en es fi fr it ja nl no pl pt ro ru sk sv dbparam dblib">
<style-specification-body>

;; $Id: docbook.dsl,v 1.25 1999/09/03 11:48:29 nwalsh Exp $
;;
;; This file is part of the Modular DocBook Stylesheet distribution.
;; See ../README or http://www.berkshire.net/~norm/dsssl/
;;

(declare-flow-object-class element
  "UNREGISTERED::James Clark//Flow Object Class::element")

(declare-flow-object-class empty-element
  "UNREGISTERED::James Clark//Flow Object Class::empty-element")

(declare-flow-object-class document-type
  "UNREGISTERED::James Clark//Flow Object Class::document-type")

(declare-flow-object-class processing-instruction
  "UNREGISTERED::James Clark//Flow Object Class::processing-instruction")

(declare-flow-object-class entity
  "UNREGISTERED::James Clark//Flow Object Class::entity")

(declare-flow-object-class entity-ref
  "UNREGISTERED::James Clark//Flow Object Class::entity-ref")

(declare-flow-object-class formatting-instruction
  "UNREGISTERED::James Clark//Flow Object Class::formatting-instruction")

(declare-characteristic preserve-sdata?
  "UNREGISTERED::James Clark//Characteristic::preserve-sdata?" #t)

(define debug
  (external-procedure "UNREGISTERED::James Clark//Procedure::debug"))

(define read-entity
  (external-procedure "UNREGISTERED::James Clark//Procedure::read-entity"))

(define all-element-number
  (external-procedure "UNREGISTERED::James Clark//Procedure::all-element-number"))

(root
 (make sequence
;   (literal
;    (debug (node-property 'gi
;			  (node-property 'document-element (current-node)))))
;(define (docelem node)
;  (node-propety 'document-element 
;    (node-property 'grove-root node)))
   (process-children)
   (with-mode manifest
     (process-children))
   (if html-index
       (with-mode htmlindex
	 (process-children))
       (empty-sosofo))))

(mode manifest
  ;; this mode is really just a hack to get at the root element
  (root (process-children))

  (default 
    (if (node-list=? (current-node) (sgml-root-element))
	(if html-manifest
	    (make entity
	      system-id: (html-entity-file html-manifest-filename)
	      (let loop ((node (current-node)))
		(if (node-list-empty? node)
		    (empty-sosofo)
		    (make sequence
		      (make formatting-instruction data: (html-file node))
		      (make formatting-instruction data: "
")
		      (loop (next-chunk-element node))))))
	    (empty-sosofo))
	(empty-sosofo))))

;; Make text that comes from unimplemented tags easy to spot
(default
  (make element gi: "FONT"
	attributes: '(("COLOR" "RED"))
	(process-children)))

&dbcommon.dsl;  <!-- Common ("stock") stylesheet functions                 -->
&dbctable.dsl;  <!-- Common stylesheet functions for tables                -->

&cmndbl10n.dsl; <!-- Common localization -->
&dbl10n.dsl;    <!-- Stylesheet-local localization -->

&dbadmon.dsl;   <!-- Admonitions                                           -->
&dbautoc.dsl;   <!-- Automatic TOC generation                              -->
&dbbibl.dsl;    <!-- Bibliographies                                        -->
&dbblock.dsl;   <!-- Miscellaneous block elements                          -->
&dbcallou.dsl;  <!-- Callouts                                              -->
&dbcompon.dsl;  <!-- Components; chapter-level elements                    -->
&dbdivis.dsl;   <!-- Divisions; Sets, Books, Articles, Parts               -->
&dbfootn.dsl;   <!-- Footnotes                                             -->
&dbgloss.dsl;   <!-- Glossaries                                            -->
&dbgraph.dsl;   <!-- Graphics                                              -->
&dbhtml.dsl;    <!-- HTML specific things                                  -->
&dbindex.dsl;   <!-- Indexes                                               -->
&dbinfo.dsl;    <!-- Infopools (SetInfo, BookInfo, Sect1Info, etc.)        -->
&dbinline.dsl;  <!-- Inline elements                                       -->
&dblink.dsl;    <!-- Links                                                 -->
&dblists.dsl;   <!-- Lists                                                 -->
&dblot.dsl;     <!-- Lists of Tables (ToC, LoT, etc.)                      -->
&dbmath.dsl;    <!-- Math (Equations)                                      -->
&dbmsgset.dsl;  <!-- MsgSet                                                -->
&dbnavig.dsl;   <!-- Navigation                                            -->
&dbchunk.dsl;   <!-- Chunking                                              -->
&dbpi.dsl;      <!-- HTML PIs (dbhtml)                                     -->
&dbprocdr.dsl;  <!-- Procedures                                            -->
&dbrfntry.dsl;  <!-- References and RefEntrys                              -->
&dbsect.dsl;    <!-- Sections                                              -->
&dbsynop.dsl;   <!-- Synopsis                                              -->
&dbtable.dsl;   <!-- Tables                                                -->
&dbtitle.dsl;   <!-- Titles                                                -->
&dbttlpg.dsl;   <!-- Title Page                                            -->
&dbverb.dsl;    <!-- Verbatim (ProgramListing, LiteralLayout, etc.)        -->
&version.dsl;   <!-- Version -->
&db31.dsl;      <!-- DocBook 3.1 elements -->

</style-specification-body>
</style-specification>

<external-specification id="dbparam" document="dbparam.dsl">
<external-specification id="dblib" document="dblib.dsl">

<external-specification id="ca" document="dbl1ca">
<external-specification id="cs" document="dbl1cs">
<external-specification id="da" document="dbl1da">
<external-specification id="de" document="dbl1de">
<external-specification id="en" document="dbl1en">
<external-specification id="es" document="dbl1es">
<external-specification id="fi" document="dbl1fi">
<external-specification id="fr" document="dbl1fr">
<external-specification id="it" document="dbl1it">
<external-specification id="ja" document="dbl1ja">
<external-specification id="nl" document="dbl1nl">
<external-specification id="no" document="dbl1no">
<external-specification id="pl" document="dbl1pl">
<external-specification id="pt" document="dbl1pt">
<external-specification id="ro" document="dbl1ro">
<external-specification id="ru" document="dbl1ru">
<external-specification id="sk" document="dbl1sk">
<external-specification id="sv" document="dbl1sv">

</style-sheet>