This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
RE: [docbook] Naming the output file
- From: "Mauritz Jeanson" <mj at johanneberg dot com>
- To: "'Alexander,D'" <D dot Alexander at lse dot ac dot uk>, <docbook at lists dot oasis-open dot org>
- Date: Tue, 8 Feb 2005 18:50:00 +0100
- Subject: RE: [docbook] Naming the output file
> -----Original Message-----
> From: Alexander,D
>
> How can I specify the filename for the (main) output document?
>
> I'm using docbook that came with Fedora Core 3 distro:
>
> $ rpm -qa | grep -i docbook
> docbook-utils-pdf-0.6.13-5
> docbook-dtds-1.0-17.2
> docbook-utils-0.6.13-5
> docbook-style-xsl-1.61.2-2
> docbook-style-dsssl-1.76-8
>
> And transforming my xml source using the following command:
>
> $ docbook2html user_guide.xml
>
> The output I get is a file called book1.html and other
> supporting files.
I think you have to customize the DSSSL stylesheets in order to get what you
want. You can create a .dsl driver file where you define something like
(define %root-filename%
;; Name for the root HTML document
"index")
More information can be found here:
http://docbook.sourceforge.net/release/dsssl/current/doc/custom.html
http://docbook.sourceforge.net/release/dsssl/current/doc/html/r1535.htm
/MJ