The filenames for chunked chapters are written like this by default:
"ch02.html."  I recently added the "use.id.as.filename" parameter to
my publishing script so that the filename will remain constant
regardless of my reorganizing the order of chapters.  Sounds like that
might be important for you if you are hand coding the titles and the
filenames in your menu.

http://docbook.sourceforge.net/release/xsl/current/doc/html/use.id.as.filename.html

Peter Desjardins

On Wed, Sep 3, 2008 at 8:52 AM, Boris <[EMAIL PROTECTED]> wrote:
> I need to create a dropdown box in a HTML page (a chapter) which can be used
> to jump to another chapter. In order to populate the dropdown box I need to
> know the chapter titles and filenames. The handwritten Javascript looks like
> this:
>
> var titles = new Array('Title', 'Chapter 1', 'Chapter 2');
> var filenames = new Array('title.html', 'introduction.html',
> 'somethingelse.html');
> create_toc_dropdown(titles, filenames);
>
> While I think I can manage to write the chapter titles I don't know where I
> get the filenames from (I use HTML chunks). If for example the first chapter
> is written to a HTML page is the filename of the second chapter already
> known?
>
> Thanks in advance,
> Boris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to