From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3039 invoked by alias); 26 Nov 2003 21:33:37 -0000 Mailing-List: contact docbook-tools-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: docbook-tools-discuss-owner@sources.redhat.com Received: (qmail 3006 invoked from network); 26 Nov 2003 21:33:35 -0000 Received: from unknown (HELO cicero0.cybercity.dk) (212.242.40.52) by sources.redhat.com with SMTP; 26 Nov 2003 21:33:35 -0000 Received: from mail.linuxbog.dk (port307.ds1-hdi.adsl.cybercity.dk [217.157.200.250]) by cicero0.cybercity.dk (Postfix) with ESMTP id 08931290AD; Wed, 26 Nov 2003 22:33:35 +0100 (CET) Received: from shogun (unknown [10.0.0.101]) by mail.linuxbog.dk (Postfix) with ESMTP id E5AE780438; Wed, 26 Nov 2003 22:33:34 +0100 (CET) Subject: Re: db2html - how to control HTML file breaks From: Peter Toft To: =?ISO-8859-1?Q?=C9ric?= Bischoff Cc: docbook-tools-discuss@sources.redhat.com X-X-Sender: pto@brick.hjemmenet In-Reply-To: <200311251107.18691.e.bischoff@noos.fr> References: <1069713639.2459.56.camel@shogun> <200311251107.18691.e.bischoff@noos.fr> X-Reply-UID: (2 > )(1 1050184587 646){brick.hjemmenet:143/imap/user="pto"}INBOX.Linux.docbook X-Reply-Mbox: {brick}INBOX.Linux.docbook X-Cursor-Pos: : 1920 Content-Type: text/plain; charset=iso-8859-1 Message-Id: <1069882414.2367.93.camel@shogun> Mime-Version: 1.0 Date: Wed, 26 Nov 2003 21:33:00 -0000 Content-Transfer-Encoding: 8bit X-SW-Source: 2003/txt/msg00048.txt.bz2 On Tue, 25 Nov 2003, Éric Bischoff wrote: > Le Lundi 24 Novembre 2003 23:40, Peter Toft a écrit : > > Hi guruz > > > > How can I control the file-breaks of my HTML output from > > db2html (using DocBook XML 4.2)? > > I want to have a new HTML-file for every chapter, > > not for every sect1 og sect2 Actually - I should extend my > > question; how can I get a new HTML-file for (and only) > > * every new chapter > > * every new sect1 or chapter > > * every new sect1, sect2 or chapter > > Hi Peter, long time not hearing from you. Well I have been writing :-)) We now have approx 1900 pages on Linux at http://www.linuxbog.dk - lots of books in Danish. > > I think it's not really a tools problem, but a DSSSL stylesheets issue. > Redefine the chunk-element list in your customized stylesheet. > > (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... > )) > > Other relevant variables : > > (define %root-filename% "index") ;; name for the root html file > (define %html-ext% ".html") ;; default extension for html output files > (define %html-prefix% "") ;; prefix for all filenames generated (except root) > (define %use-id-as-filename% #t) ;; uses ID value, if present, as filename > (define use-output-dir #f) ;; output in separate directory? > (define %output-dir% "HTML") ;; if output in directory, it's called HTML > > Best, Thanx Peter Toft, Ph.D. [pto@linuxbog.dk] http://pto.linux.dk Audience: What do you want, Eric? Eric: I want to live in a world where software doesn't suck. Richard: Any software that isn't free sucks. Linus: I'm interested in free beer.