<xsl:variable name="next" select="(/slides/foil|/slides/foilgroup)[1]"/>
<xsl:variable name="tocfile" select="$toc.html"/>
+ <xsl:variable name="dir">
+ <xsl:call-template name="dbhtml-dir"/>
+ </xsl:variable>
+
<xsl:call-template name="write.chunk">
<xsl:with-param name="indent" select="$output.indent"/>
- <xsl:with-param name="filename" select="concat($base.dir, $titlefoil.html)"/>
+ <xsl:with-param name="filename" select="concat($base.dir, $dir, $titlefoil.html)"/>
<xsl:with-param name="content">
<html>
<head>
<xsl:variable name="up" select="/slides"/>
<xsl:variable name="next" select="(foil|foilgroup)[1]"/>
<xsl:variable name="tocfile" select="''"/>
+ <xsl:variable name="dir"> <!-- MJ: added -->
+ <xsl:call-template name="dbhtml-dir"/>
+ </xsl:variable>
<xsl:call-template name="write.chunk">
<xsl:with-param name="indent" select="$output.indent"/>
- <xsl:with-param name="filename" select="concat($base.dir, $toc.html)"/>
+ <xsl:with-param name="filename" select="concat($base.dir, $dir, $toc.html)"/>
<xsl:with-param name="content">
<html>
<head>
<xsl:template match="foil">
<xsl:param name="thisfoil">
- <xsl:apply-templates select="." mode="filename"/>
+ <xsl:apply-templates select="." mode="chunk-filename"/>
</xsl:param>
<xsl:variable name="id">
<xsl:template match="foilgroup">
<xsl:param name="thisfoilgroup">
- <xsl:apply-templates select="." mode="filename"/>
+ <xsl:apply-templates select="." mode="chunk-filename"/>
</xsl:param>
<xsl:variable name="id">
</xsl:template>
<xsl:template match="foilgroup" mode="filename">
- <xsl:text>foilgrp</xsl:text>
+ <xsl:text>foilgroup</xsl:text>
<xsl:number count="foilgroup" level="any" format="01"/>
<xsl:value-of select="$html.ext"/>
</xsl:template>
<xsl:number count="foil" level="any"/>
</xsl:variable>
+ <xsl:value-of select="$dir"/>
<xsl:text>foil</xsl:text>
<xsl:number value="$foilnumber" format="01"/>
<xsl:value-of select="$html.ext"/>
<xsl:number count="foilgroup" level="any" format="01"/>
</xsl:variable>
- <xsl:text>foilgrp</xsl:text>
+ <xsl:value-of select="$dir"/>
+ <xsl:text>foilgroup</xsl:text>
<xsl:number value="$foilgroupnumber" format="01"/>
<xsl:value-of select="$html.ext"/>
</xsl:when>