From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27432 invoked by alias); 25 Nov 2003 10:34:51 -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 27424 invoked from network); 25 Nov 2003 10:34:48 -0000 Received: from unknown (HELO ns.bureau-cornavin.com) (81.53.0.2) by sources.redhat.com with SMTP; 25 Nov 2003 10:34:48 -0000 Received: by ns.bureau-cornavin.com (Postfix, from userid 500) id 22A864AB2E; Tue, 25 Nov 2003 11:07:19 +0100 (CET) From: =?iso-8859-1?q?=C9ric=20Bischoff?= To: Peter Toft , docbook-tools-discuss@sources.redhat.com Subject: Re: db2html - how to control HTML file breaks Date: Tue, 25 Nov 2003 10:34:00 -0000 User-Agent: KMail/1.5.1 References: <1069713639.2459.56.camel@shogun> In-Reply-To: <1069713639.2459.56.camel@shogun> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200311251107.18691.e.bischoff@noos.fr> X-SW-Source: 2003/txt/msg00047.txt.bz2 Le Lundi 24 Novembre 2003 23:40, Peter Toft a =E9crit : > 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. I think it's not really a tools problem, but a DSSSL stylesheets issue.=20 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 roo= t) (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, --=20 Niemand ist mehr Sklave, wie der, der sich Frei w=E4hnt, ohne es zu Sein. Il n'est pas plus esclave que celui qui se croit libre =E0 tort. None are more enslaved than those who falsely believe they are free. - Goethe