This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: DSSSL / HTML output in different subdirectories?


I don't know if this answer will be valid for your specific case, but anyway:
I use a file that is a kind of catalog in which I specify the files (e.g. chapters)
which compose the document. These files are in different directories. For example:

<!DOCTYPE PART PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
	  <!ENTITY % output.html "IGNORE">
        <!ENTITY % output.print "IGNORE">
	<!ENTITY if0008 SYSTEM "general/if0008.sgm">
	<!ENTITY if0009 SYSTEM "general/if0009.sgm">
	<!ENTITY if0023 SYSTEM "general/if0023.sgm">
	<!ENTITY if0024 SYSTEM "general/if0024.sgm">
	<!ENTITY if0027 SYSTEM "general/if0027.sgm">
	<!ENTITY if0041 SYSTEM "general/if0041.sgm">
	<!ENTITY if0042 SYSTEM "general/if0042.sgm">
	<!ENTITY IF0087 SYSTEM "comunica/IF0087.sgm">
	<!ENTITY IF0088 SYSTEM "comunica/IF0088.sgm">
	<!ENTITY IF0100 SYSTEM "comunica/IF0100.sgm">
	<!ENTITY IF0101 SYSTEM "comunica/IF0101.sgm">
	<!ENTITY IF0102 SYSTEM "comunica/IF0102.sgm">
	<!ENTITY IF0104 SYSTEM "comunica/IF0104.sgm">
	<!ENTITY IF0105 SYSTEM "comunica/IF0105.sgm">
	<!ENTITY IF0106 SYSTEM "comunica/IF0106.sgm">
	<!ENTITY IF0107 SYSTEM "comunica/IF0107.sgm">
	<!ENTITY IF0211 SYSTEM "comunica/IF0211.sgm">
	<!ENTITY if0018 SYSTEM "logicas/if0018.sgm">
	<!ENTITY if0020 SYSTEM "logicas/if0020.sgm">
	<!ENTITY if0021 SYSTEM "logicas/if0021.sgm">
	<!ENTITY if0038 SYSTEM "logicas/if0038.sgm">
	<!ENTITY if0039 SYSTEM "logicas/if0039.sgm">
]>
<part lang="es" label="M">
<title>Funciones del Sistema</title>
<chapter lang="es" label="1"><TITLE>Funciones Generales</TITLE>
&if0008;
&if0009;
&if0023;
&if0024;
&if0027;
&if0033;
</chapter>
<chapter lang="es" label="2"><TITLE>Funciones de Comunicacion</TITLE>
&IF0045;
&IF0046;
&IF0047;
&IF0048;
&IF0049;
&IF0085;
&IF0086;
&IF0087;
&IF0088;
&IF0090;
</chapter>
etc...

This file is automatically generated by a Perl script, based on a text file which includes the
path to search in and the title for each directory.

When you run Jade over the sgm file, you get the html files in the corresponding directories.
The only disadvantage I found is that you need to include the relative path for the pictures in
the sgm source files. i.e: If you have:

	"IF0098.sgm" in .\comunica
    and "mygraphic.jpg" in .\comunica
you need to address it in "IF0098.sgm" as fileref="comunica/mygraphic.eps" to allow jade get it.

If somebody has a better way to do this I would appreciate knowing about it.

P.S. The file I have transcripted here may contain errors (I have just copied some parts of the
real file and the filenames may not correspond).

Regards,

Juan R. Migoya

Karl Eichwalder wrote:
> 
> The writers of the GIMP User Manual asked me whether it's possible to
> use a separate subdirectory for every chapter while generating HTML
> output using Norman Walsh's DSSSL stylesheets.  I didn't find a
> customization parameter.
> 
> In addition I'm wondering whether jade is able to create subdirectories?
> I guess the answer is no since DSSSL doesn't allow side effects.  But it
> shouldn't be that hard to use external pre- or postprocessing to create
> wanted directories with simple shell commands.
> 
> --
> work : ke@suse.de                          |          ------    ,__o
>      : http://www.suse.de/~ke/             |         ------   _-\_<,
> home : keichwa@gmx.net                     |        ------   (*)/'(*)


************************************************************************
Juan R. Migoya
Ingelectric-Team, S.A.
Control Enginnering.
Documentation Department.
Tel. +34 94 403 98 30
Fax. +34 94 403 96 80

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]