docbook: filename


Previous by date: 11 Jul 2002 14:35:19 -0000 filename, David Chow
Next by date: 11 Jul 2002 14:35:19 -0000 Help! Problem compiling LDP SGML with OpenJade +Tools, Ol Dirty
Previous in thread: 11 Jul 2002 14:35:19 -0000 filename, David Chow
Next in thread:

Subject: Re: filename
From: "Greg Ferguson" ####@####.####
Date: 11 Jul 2002 14:35:19 -0000
Message-Id: <10207111031.ZM3451@hoop.timonium.sgi.com>

On Jul 11, 10:03am, David Chow wrote:
> Subject: filename
> Dear all,
>
> I am very new to docbook, I want to make my html output using section
> specific filenames i.e. <section id="abc"> and I want my html file name
> as abc.html . But I don't know why it doesn't work, the output filenames
> are just arbitary. I am using the script "db2html" comes with redhat 7.2
> , I finally find out the command in the script as follows.
>
> jw -f docbook -b html -o ${output} "$@"
>
> Is there anything I am missing to make these html files?

Yes...there is a DSSSL option that needs to be set :

 (define %use-id-as-filename%
  ;; Use ID attributes as name for component HTML files?
  #t)

By default, it's set to (f)alse. Again, this is one that cannot be
set from the command line, you need to override it with your
own DSSSL file or tweak <dsssl_location>/html/dbparam.dsl (not
recommended as installing newer versions of the base DSSSL stylesheets
will overwrite your change).

ldp.dsl provides this setting. See http://tldp.org/authors/#resources
under "DSSSL (stylesheets)" if you wish to download a copy of ldp.dsl

regards,


-- 
Greg Ferguson    * SGI principal engr / LDP contributor
SGI Tech Pubs    * http://techpubs.sgi.com/ | gferg(at)sgi.com
Linux Doc Project* http://tldp.org/         | gferg(at)metalab.unc.edu

Previous by date: 11 Jul 2002 14:35:19 -0000 filename, David Chow
Next by date: 11 Jul 2002 14:35:19 -0000 Help! Problem compiling LDP SGML with OpenJade +Tools, Ol Dirty
Previous in thread: 11 Jul 2002 14:35:19 -0000 filename, David Chow
Next in thread:


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.