/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/dbdivis.dsl is in docbook-dsssl 1.79-6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | ;; $Id: dbdivis.dsl,v 1.4 2003/01/15 08:24:13 adicarlo Exp $
;;
;; This file is part of the Modular DocBook Stylesheet distribution.
;; See ../README or http://docbook.sourceforge.net/projects/dsssl/
;;
;; ============================= DIVISIONS ==============================
(element set
(let* ((setinfo (select-elements (children (current-node)) (normalize "setinfo")))
(ititle (select-elements (children setinfo) (normalize "title")))
(title (if (node-list-empty? ititle)
(select-elements (children (current-node)) (normalize "title"))
(node-list-first ititle)))
(nl (titlepage-info-elements (current-node) setinfo))
(tsosofo (with-mode head-title-mode
(process-node-list title))))
(html-document
tsosofo
(make element gi: "DIV"
attributes: '(("CLASS" "SET"))
(make element gi: "A"
attributes: (list (list "NAME" (element-id)))
(empty-sosofo))
(if %generate-set-titlepage%
(make sequence
(set-titlepage nl 'recto)
(set-titlepage nl 'verso))
(empty-sosofo))
(if (not (generate-toc-in-front))
(process-children)
(empty-sosofo))
(if %generate-set-toc%
(make sequence
(build-toc (current-node) (toc-depth (current-node))))
(empty-sosofo))
(if (generate-toc-in-front)
(process-children)
(empty-sosofo))))))
(element (set title) (empty-sosofo))
(element book
(let* ((bookinfo (select-elements (children (current-node)) (normalize "bookinfo")))
(ititle (select-elements (children bookinfo) (normalize "title")))
(title (if (node-list-empty? ititle)
(select-elements (children (current-node)) (normalize "title"))
(node-list-first ititle)))
(nl (titlepage-info-elements (current-node) bookinfo))
(tsosofo (with-mode head-title-mode
(process-node-list title)))
(dedication (select-elements (children (current-node)) (normalize "dedication"))))
(html-document
tsosofo
(make element gi: "DIV"
attributes: '(("CLASS" "BOOK"))
(make element gi: "A"
attributes: (list (list "NAME" (element-id)))
(empty-sosofo))
(if %generate-book-titlepage%
(make sequence
(book-titlepage nl 'recto)
(book-titlepage nl 'verso))
(empty-sosofo))
(if (node-list-empty? dedication)
(empty-sosofo)
(with-mode dedication-page-mode
(process-node-list dedication)))
(if (not (generate-toc-in-front))
(process-children)
(empty-sosofo))
(if %generate-book-toc%
(build-toc (current-node) (toc-depth (current-node)))
(empty-sosofo))
(let loop ((gilist ($generate-book-lot-list$)))
(if (null? gilist)
(empty-sosofo)
(if (not (node-list-empty?
(select-elements (descendants (current-node))
(car gilist))))
(make sequence
(build-lot (current-node) (car gilist))
(loop (cdr gilist)))
(loop (cdr gilist)))))
(if (generate-toc-in-front)
(process-children)
(empty-sosofo))))))
(element (book title) (empty-sosofo))
(element part
(let* ((partinfo (select-elements (children (current-node))
(normalize "docinfo")))
(partintro (select-elements (children (current-node))
(normalize "partintro")))
(nl (titlepage-info-elements
(current-node)
partinfo
(if %generate-partintro-on-titlepage%
partintro
(empty-node-list))))
(ititle (select-elements (children partinfo) (normalize "title")))
(title (if (node-list-empty? ititle)
(select-elements (children (current-node)) (normalize "title"))
(node-list-first ititle)))
(tsosofo (with-mode head-title-mode
(process-node-list title))))
(html-document
tsosofo
(make element gi: "DIV"
attributes: '(("CLASS" "PART"))
(make element gi: "A"
attributes: (list (list "NAME" (element-id)))
(empty-sosofo))
(if %generate-part-titlepage%
(make sequence
(part-titlepage nl 'recto)
(part-titlepage nl 'verso))
(empty-sosofo))
(if (not (generate-toc-in-front))
(process-children)
(empty-sosofo))
(if (and (not (node-list-empty? partintro))
(not %generate-partintro-on-titlepage%))
($process-partintro$ partintro)
(empty-sosofo))
(if (and %generate-part-toc%
(not %generate-part-toc-on-titlepage%))
(make sequence
(build-toc (current-node)
(toc-depth (current-node))))
(empty-sosofo))
(if (generate-toc-in-front)
(process-children)
(empty-sosofo))))))
(element (part title) (empty-sosofo))
(element partintro (empty-sosofo))
(element (partintro title)
(make element gi: "H1"
(process-children)))
(element (partintro sect1)
($section-body$))
(define ($process-partintro$ partintro)
(make element gi: "DIV"
attributes: (list (list "CLASS" "PARTINTRO"))
(make element gi: "A"
attributes: (list (list "NAME" (element-id partintro)))
(empty-sosofo))
(process-node-list (children partintro))
(make-endnotes partintro)))
|