public inbox for docbook-tools-discuss@sourceware.org
 help / color / mirror / Atom feed
* db2html  - how to control HTML file breaks
@ 2003-11-24 22:40 Peter Toft
  2003-11-25 10:34 ` Éric Bischoff
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Toft @ 2003-11-24 22:40 UTC (permalink / raw)
  To: docbook-tools-discuss

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

Best


-- 
Peter Toft, Ph.D. [pto@linuxbog.dk] http://pto.linux.dk

http://LinuxForum.dk - Ã…rets bedste Linux og
BSD konference kommer 5. og 6. marts 2004 i Symbion.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: db2html  - how to control HTML file breaks
  2003-11-24 22:40 db2html - how to control HTML file breaks Peter Toft
@ 2003-11-25 10:34 ` Éric Bischoff
  2003-11-26 21:33   ` Peter Toft
  0 siblings, 1 reply; 6+ messages in thread
From: Éric Bischoff @ 2003-11-25 10:34 UTC (permalink / raw)
  To: Peter Toft, docbook-tools-discuss

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.

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,

-- 
Niemand ist mehr Sklave, wie der, der sich Frei wähnt, ohne es zu Sein.
Il n'est pas plus esclave que celui qui se croit libre à tort.
None are more enslaved than those who falsely believe they are free.
  - Goethe

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: db2html  - how to control HTML file breaks
  2003-11-25 10:34 ` Éric Bischoff
@ 2003-11-26 21:33   ` Peter Toft
  2003-11-26 22:10     ` Éric Bischoff
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Toft @ 2003-11-26 21:33 UTC (permalink / raw)
  To: Éric Bischoff; +Cc: docbook-tools-discuss

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: db2html  - how to control HTML file breaks
  2003-11-26 21:33   ` Peter Toft
@ 2003-11-26 22:10     ` Éric Bischoff
  2003-11-26 22:13       ` Éric Bischoff
  0 siblings, 1 reply; 6+ messages in thread
From: Éric Bischoff @ 2003-11-26 22:10 UTC (permalink / raw)
  To: Peter Toft; +Cc: docbook-tools-discuss

Le Mercredi 26 Novembre 2003 22:33, Peter Toft a écrit :
> > 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.

Cool. I'm not anymore at Caldera (which now went on the dark side) and I have 
founded a very Linux-oriented technical translations and writing company 
(http://www.bureau-cornavin.com). I'll remember to ask you if we happen to 
need Danish translators.

>   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.

Hee hee.. Is that signature automagically generated ?

-- 
Niemand ist mehr Sklave, wie der, der sich Frei wähnt, ohne es zu Sein.
Il n'est pas plus esclave que celui qui se croit libre à tort.
None are more enslaved than those who falsely believe they are free.
  - Goethe

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: db2html  - how to control HTML file breaks
  2003-11-26 22:10     ` Éric Bischoff
@ 2003-11-26 22:13       ` Éric Bischoff
  2003-11-26 22:39         ` Peter Toft
  0 siblings, 1 reply; 6+ messages in thread
From: Éric Bischoff @ 2003-11-26 22:13 UTC (permalink / raw)
  To: Peter Toft; +Cc: docbook-tools-discuss

Le Mercredi 26 Novembre 2003 22:27, Éric Bischoff a écrit :
>
> Hee hee.. Is that signature automagically generated ?

I'm an idot. The "Eric" who is mentioned is obviously Eric S. Raymond, not me. 
I recognized myself as someone who would like software that doesn't suck ;-).

-- 
Niemand ist mehr Sklave, wie der, der sich Frei wähnt, ohne es zu Sein.
Il n'est pas plus esclave que celui qui se croit libre à tort.
None are more enslaved than those who falsely believe they are free.
  - Goethe

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: db2html  - how to control HTML file breaks
  2003-11-26 22:13       ` Éric Bischoff
@ 2003-11-26 22:39         ` Peter Toft
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Toft @ 2003-11-26 22:39 UTC (permalink / raw)
  To: docbook-tools-discuss

On ons, 2003-11-26 at 22:30, Éric Bischoff wrote:
> Le Mercredi 26 Novembre 2003 22:27, Éric Bischoff a écrit :
> >
> > Hee hee.. Is that signature automagically generated ?
> 
> I'm an idot. The "Eric" who is mentioned is obviously Eric S. Raymond, not me. 
> I recognized myself as someone who would like software that doesn't suck ;-).

Sorry about that :))

-- 
Peter Toft, Ph.D. [pto@linuxbog.dk] http://pto.linux.dk

  Audience:  What do you want, Éric Bischoff ?
  Éric Bischoff :  I want to live in a world where software doesn't
suck.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-11-26 22:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-24 22:40 db2html - how to control HTML file breaks Peter Toft
2003-11-25 10:34 ` Éric Bischoff
2003-11-26 21:33   ` Peter Toft
2003-11-26 22:10     ` Éric Bischoff
2003-11-26 22:13       ` Éric Bischoff
2003-11-26 22:39         ` Peter Toft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).