1 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
2 <!ENTITY docbook.dsl SYSTEM "@DSSSL_DIR@/html/docbook.dsl"
6 $Id: yazphp.dsl.in,v 1.1 2004-04-11 11:36:53 adam Exp $
9 <style-specification use="docbook">
10 <style-specification-body>
12 (define %use-id-as-filename% #t)
13 (define %output-dir% "php")
14 (define %html-ext% ".php")
15 (define %shade-verbatim% #t)
17 (define newline "\U-000D")
19 (define (html-document title-sosofo body-sosofo)
20 (let* (;; Let's look these up once, so that we can avoid calculating
21 ;; them over and over again.
22 (prev (prev-chunk-element))
23 (next (next-chunk-element))
24 (prevm (prev-major-component-chunk-element))
25 (nextm (next-major-component-chunk-element))
26 (navlist (list prev next prevm nextm))
28 ;; Let's make it possible to control the output even in the
29 ;; nochunks case. Note: in the nochunks case, (chunk?) will
30 ;; return #t for only the root element.
31 (make-entity? (and (or (not nochunks) rootchunk)
34 (make-head? (or make-entity?
36 (node-list=? (current-node)
37 (sgml-root-element)))))
41 (make formatting-instruction data:
42 (string-append "<" "?php "
44 "require \"../../id_common.inc\";"
50 (make formatting-instruction data:
56 (header-navigation (current-node) navlist)
58 (footer-navigation (current-node) navlist)
59 (make formatting-instruction data:
60 (string-append "<" "?php id_footer() ?>")
69 system-id: (html-entity-file (html-file))
73 public-id: %html-pubid%)
76 (if (node-list=? (current-node) (sgml-root-element))
81 public-id: %html-pubid%)
89 </style-specification-body>
90 </style-specification>
91 <external-specification id="docbook" document="docbook.dsl">