|
1 |
| -<!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v1.9 2001/09/14 20:37:55 petere Exp $ --> |
| 1 | +<!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v1.10 2001/09/1500:48:59 petere Exp $ --> |
2 | 2 | <!DOCTYPE style-sheet PUBLIC"-//James Clark//DTD DSSSL Style Sheet//EN" [
|
3 | 3 |
|
4 | 4 | <!-- must turn on one of these with -i on the jade command line -->
|
|
68 | 68 |
|
69 | 69 | (define html-index #t)
|
70 | 70 |
|
| 71 | +;; Block elements are allowed in PARA in DocBook, but not in P in |
| 72 | +;; HTML. With %fix-para-wrappers% turned on, the stylesheets attempt |
| 73 | +;; to avoid putting block elements in HTML P tags by outputting |
| 74 | +;; additional end/begin P pairs around them. |
| 75 | +(define %fix-para-wrappers% #t) |
| 76 | + |
| 77 | +;; ...but we need to do some extra work to make the above apply to PRE |
| 78 | +;; as well. (mostly pasted from dbverb.dsl) |
| 79 | +(define ($verbatim-display$ indent line-numbers?) |
| 80 | + (let ((content (make element gi:"PRE" |
| 81 | + attributes: (list |
| 82 | + (list"CLASS" (gi))) |
| 83 | + (if (or indent line-numbers?) |
| 84 | + ($verbatim-line-by-line$ indent line-numbers?) |
| 85 | + (process-children))))) |
| 86 | + (if %shade-verbatim% |
| 87 | + (make element gi:"TABLE" |
| 88 | + attributes: ($shade-verbatim-attr$) |
| 89 | + (make element gi:"TR" |
| 90 | + (make element gi:"TD" |
| 91 | + content))) |
| 92 | +(make sequence |
| 93 | + (para-check) |
| 94 | + content |
| 95 | + (para-check 'restart))))) |
| 96 | + |
| 97 | +;; ...and for notes. |
| 98 | +(element note |
| 99 | + (make sequence |
| 100 | + (para-check) |
| 101 | + ($admonition$) |
| 102 | + (para-check 'restart))) |
| 103 | + |
| 104 | +;;; XXX The above is very ugly. It might be better to run 'tidy' on |
| 105 | +;;; the resulting *.html files. |
| 106 | + |
71 | 107 | ]]> <!-- %output-html -->
|
72 | 108 |
|
73 | 109 | <![ %output-print; [
|
|