On Wed, 03 Sep 2008 17:33:58 +0200, Bob Stayton <[EMAIL PROTECTED]> 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

[...]


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

Reply via email to