This is the mail archive of the docbook-tools-discuss@sources.redhat.com mailing list for the docbook-tools project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SGML -> HTML split level


/ Peter Toft <pto@sslug.dk> was heard to say:
| Where can I control it so that the split is done at
| each new <sect2> or <sect3>? (this is a global
| setting)

In your stylesheet, add sect2 and sect3 to this list:

(define (chunk-element-list)
  (list (normalize "preface")
	(normalize "chapter")
	(normalize "appendix") 
	(normalize "article")
	(normalize "glossary")
	(normalize "bibliography")
	(normalize "index")
	(normalize "colophon")
	(normalize "setindex")
	(normalize "reference")
	(normalize "refentry")
	(normalize "part")
	(normalize "sect1") 
	(normalize "section") 
	(normalize "book") ;; just in case nothing else matches...
	(normalize "set")  ;; sets are definitely chunks...
	))

And probably to this list as well.

(define (chunk-skip-first-element-list)
  (list (normalize "sect1")
	(normalize "section")))

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | We make out of the quarrel with others,
http://nwalsh.com/            | rhetoric, but out of the quarrel with
                              | ourselves, poetry.--W. B. Yeats

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]