OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] HTML chunks: How to write filenames?


You can process each chapter in the mode="recursive-chunk-filename", which 
returns the filename with extension of the chunk for that element.  That 
mode is used to create the chunks, so it works with any of the filename 
options.  You can use it something like this:

<xsl:for-each select="/book/chapter">
  <xsl:variable name="chunk.filename">
    <xsl:apply-templates select="." mode="recursive-chunk-filename"/>
  </xsl:variable>
  ...
</xsl:for-each>

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Boris" <boriss@web.de>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, September 03, 2008 5:52 AM
Subject: [docbook-apps] HTML chunks: How to write filenames?


>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: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]