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: HTML chunks: How to write filenames?


On Wed, 03 Sep 2008 17:33:58 +0200, Bob Stayton <bobs@sagehill.net> wrote:

> 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>

Thanks again for your help, Bob! This works fine:

var filenames = new Array(
<xsl:for-each select="/d:book/d:chapter">
   <xsl:variable name="chunk.filename">
     <xsl:apply-templates select="." mode="recursive-chunk-filename"/>
   </xsl:variable>
   "<xsl:value-of select="$chunk.filename"/>",
</xsl:for-each>
);

Boris

> [...]



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