Next in thread → Next in month →

Re: HTML chunks: How to write filenames?

From
Boris <>
Date
2008-09-03T18:11:09+00:00
ID
op.ugw3isjs9dsao3@burk
Thread
Re: HTML chunks: How to write filenames?
On Wed, 03 Sep 2008 17:33:58 +0200, Bob Stayton <> 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

> [...]
Next in thread → Next in month →