]> granicus.if.org Git - docbook-dsssl/commitdiff
Added support for dbhtml dir PI (Tracker #1179044). Thanks to
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 22 Apr 2005 15:00:48 +0000 (15:00 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 22 Apr 2005 15:00:48 +0000 (15:00 +0000)
Mauritz Jeanson for the patch. And to M. Sean Gilligan for
submitting the original request (on docbook-apps).

slides/xsl/html/slides-common.xsl

index 216a48b2d1b57f40fa58609516ad4759039b9f70..995f1cb2d0fd536f7f4fbf91061ae71649390308 100644 (file)
 
   <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>