2001-03-10 17:05:35 +01:00
|
|
|
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v 1.7 2001/03/10 16:05:35 petere Exp $ -->
|
2001-02-13 22:27:05 +01:00
|
|
|
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
|
|
|
|
|
|
|
|
<!-- must turn on one of these with -i on the jade command line -->
|
|
|
|
<!ENTITY % output-html "IGNORE">
|
|
|
|
<!ENTITY % output-print "IGNORE">
|
2001-03-10 17:05:35 +01:00
|
|
|
<!ENTITY % output-text "IGNORE">
|
2001-02-13 22:27:05 +01:00
|
|
|
|
|
|
|
<![ %output-html; [
|
|
|
|
<!ENTITY dbstyle PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA DSSSL>
|
|
|
|
]]>
|
|
|
|
|
|
|
|
<![ %output-print; [
|
|
|
|
<!ENTITY dbstyle PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA DSSSL>
|
|
|
|
]]>
|
|
|
|
|
2001-03-10 17:05:35 +01:00
|
|
|
<![ %output-text; [
|
|
|
|
<!ENTITY dbstyle PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA DSSSL>
|
|
|
|
]]>
|
|
|
|
|
2001-02-13 22:27:05 +01:00
|
|
|
]>
|
|
|
|
|
|
|
|
<style-sheet>
|
|
|
|
<style-specification use="docbook">
|
|
|
|
<style-specification-body>
|
|
|
|
|
|
|
|
(define pgsql-docs-list "pgsql-docs@postgresql.org")
|
|
|
|
|
|
|
|
(define %refentry-xref-manvolnum% #f)
|
2001-02-24 13:40:27 +01:00
|
|
|
(define %callout-graphics% #f)
|
|
|
|
|
|
|
|
(define %content-title-end-punct%
|
|
|
|
'(#\. #\! #\? #\:))
|
2001-02-13 22:27:05 +01:00
|
|
|
|
2001-02-18 18:15:03 +01:00
|
|
|
(element lineannotation ($italic-seq$))
|
2001-02-14 20:35:14 +01:00
|
|
|
(element structfield ($mono-seq$))
|
|
|
|
(element structname ($mono-seq$))
|
|
|
|
(element type ($mono-seq$))
|
|
|
|
|
2001-02-13 22:27:05 +01:00
|
|
|
<![ %output-html; [
|
|
|
|
;; customize the html stylesheet
|
|
|
|
|
2001-03-10 17:05:35 +01:00
|
|
|
(define %section-autolabel% #t)
|
2001-02-13 22:27:05 +01:00
|
|
|
(define %generate-legalnotice-link% #t)
|
|
|
|
(define %html-ext% ".html")
|
|
|
|
(define %link-mailto-url% (string-append "mailto:" pgsql-docs-list))
|
|
|
|
(define %use-id-as-filename% #t)
|
|
|
|
|
|
|
|
;; Returns the depth of auto TOC that should be made at the nd-level
|
|
|
|
(define (toc-depth nd)
|
|
|
|
(cond ((string=? (gi nd) (normalize "book")) 3)
|
|
|
|
((string=? (gi nd) (normalize "set")) 2)
|
2001-02-24 13:40:27 +01:00
|
|
|
((string=? (gi nd) (normalize "part")) 2)
|
|
|
|
((string=? (gi nd) (normalize "chapter")) 2)
|
2001-02-13 22:27:05 +01:00
|
|
|
(else 1)))
|
|
|
|
|
|
|
|
;; Put date of creation into header
|
|
|
|
(define %html-header-tags%
|
|
|
|
(list (list "META" '("NAME" "creation") (list "CONTENT" (time->string (time) #t)))))
|
|
|
|
|
|
|
|
]]> <!-- %output-html -->
|
|
|
|
|
|
|
|
<![ %output-print; [
|
|
|
|
;; customize the print stylesheet
|
|
|
|
|
2001-03-10 17:05:35 +01:00
|
|
|
(define %section-autolabel% #t)
|
2001-02-13 22:27:05 +01:00
|
|
|
(define %default-quadding% 'justify)
|
|
|
|
(define bop-footnotes #t)
|
2001-02-18 18:15:03 +01:00
|
|
|
(define %hyphenation%
|
|
|
|
(if tex-backend #t #f))
|
2001-02-13 22:27:05 +01:00
|
|
|
|
|
|
|
]]> <!-- %output-print -->
|
|
|
|
|
2001-03-10 17:05:35 +01:00
|
|
|
<![ %output-text; [
|
|
|
|
;; customize HTML stylesheet to be suitable for dumping plain text
|
|
|
|
;; (for INSTALL file)
|
|
|
|
|
|
|
|
(define %section-autolabel% #f)
|
|
|
|
(define %chapter-autolabel% #f)
|
|
|
|
(define $generate-chapter-toc$ (lambda () #f))
|
|
|
|
|
|
|
|
]]> <!-- %output-text -->
|
|
|
|
|
2001-02-13 22:27:05 +01:00
|
|
|
</style-specification-body>
|
|
|
|
</style-specification>
|
|
|
|
|
|
|
|
<external-specification id="docbook" document="dbstyle">
|
|
|
|
</style-sheet>
|