]> granicus.if.org Git - docbook-dsssl/commitdiff
Use html.ext parameter instead of .html for filename extensions
authorNorman Walsh <ndw@nwalsh.com>
Tue, 17 Sep 2002 00:49:59 +0000 (00:49 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 17 Sep 2002 00:49:59 +0000 (00:49 +0000)
slides/xsl/default.xsl
slides/xsl/frames.xsl
slides/xsl/param.xweb
slides/xsl/plain.xsl
slides/xsl/vslides.xsl

index 0f94a95c90d50a6bd066d80033ff6ae64e4a7e23..4486865c69f9f1d526d790a4cf584aed5a73e699 100644 (file)
         <td align="right" width="20%" valign="top">
           <a>
             <xsl:attribute name="href">
-              <xsl:apply-templates select="(following::foilset|following::foil)[1]"
+              <xsl:apply-templates select="(following::foilgroup|following::foil)[1]"
                                    mode="filename"/>
             </xsl:attribute>
             <img alt="Next" border="0">
index efe01fb56ad93189d40e2e40bc05ff9f665ec21e..687fc8faedbd18fddfd16acc4ae456278e2941c6 100644 (file)
@@ -4,7 +4,7 @@
 
 <xsl:import href="slides-common.xsl"/>
 
-<xsl:param name="titlefoil.html" select="'titlepg.html'"/>
+<xsl:param name="titlefoil.html" select="concat('titlepg', $html.ext)"/>
 
 <xsl:param name="css.stylesheet" select="'slides-frames.css'"/>
 
 
   <xsl:call-template name="write.chunk">
     <xsl:with-param name="indent" select="$output.indent"/>
-    <xsl:with-param name="filename" select="concat($base.dir,'frames.html')"/>
+    <xsl:with-param name="filename" select="concat($base.dir,'frames', $html.ext)"/>
     <xsl:with-param name="content">
       <html>
         <head>
           <title><xsl:value-of select="$title"/></title>
         </head>
         <frameset border="1" cols="{$toc.width},*" name="topframe" framespacing="0">
-          <frame src="toc.html" name="toc" frameborder="1"/>
+          <frame src="{concat('toc', $html.ext)}" name="toc" frameborder="1"/>
           <frame src="{$titlefoil.html}" name="foil"/>
           <noframes>
             <body class="frameset">
               <xsl:call-template name="body.attributes"/>
-              <a href="titleframe.html">
+              <a href="{concat('titleframe', $html.ext)}">
                 <xsl:text>Your browser doesn't support frames.</xsl:text>
               </a>
             </body>
@@ -56,7 +56,7 @@
 
   <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,'toc',$html.ext)"/>
     <xsl:with-param name="content">
       <html>
         <head>
@@ -492,7 +492,7 @@ function init() {
               </span>
             </td>
             <td align="right" width="20%" valign="top">
-              <a href="foil01.html">
+              <a href="{concat('foil01', $html.ext)}">
                 <img alt="{$text.next}" border="0">
                   <xsl:attribute name="src">
                     <xsl:call-template name="next.image"/>
@@ -726,7 +726,7 @@ function init() {
   <xsl:variable name="thisfoilgroup">
     <xsl:text>foilgrp</xsl:text>
     <xsl:number count="foilgroup" level="any" format="01"/>
-    <xsl:text>.html</xsl:text>
+    <xsl:value-of select="$html.ext"/>
   </xsl:variable>
 
   <frameset rows="{$multiframe.navigation.height},*,{$multiframe.navigation.height}"
@@ -751,7 +751,7 @@ function init() {
   <xsl:variable name="foilgroup">
     <xsl:text>foilgrp</xsl:text>
     <xsl:number count="foilgroup" level="any" format="01"/>
-    <xsl:text>.html</xsl:text>
+    <xsl:value-of select="$html.ext"/>
   </xsl:variable>
 
   <xsl:variable name="home" select="/slides"/>
@@ -816,7 +816,7 @@ function init() {
   <xsl:variable name="thisfoilgroup">
     <xsl:text>foilgrp</xsl:text>
     <xsl:number count="foilgroup" level="any" format="01"/>
-    <xsl:text>.html</xsl:text>
+    <xsl:value-of select="$html.ext"/>
   </xsl:variable>
 
   <xsl:call-template name="write.chunk">
@@ -865,7 +865,7 @@ function init() {
   <xsl:variable name="thisfoilgroup">
     <xsl:text>foilgrp</xsl:text>
     <xsl:number count="foilgroup" level="any" format="01"/>
-    <xsl:text>.html</xsl:text>
+    <xsl:value-of select="$html.ext"/>
   </xsl:variable>
 
   <xsl:variable name="home" select="/slides"/>
@@ -1385,7 +1385,7 @@ function init() {
   <xsl:variable name="thisfoilgroup">
     <xsl:text>foilgrp</xsl:text>
     <xsl:number count="foilgroup" level="any" format="01"/>
-    <xsl:text>.html</xsl:text>
+    <xsl:value-of select="$html.ext"/>
   </xsl:variable>
 
   <DIV class="toc-foilgroup" id="{$id}">
index 570037f6311d0d7ab3f3ffe96319e12d67489948..74279e753e89343c23cc67b0dd10bcd4b5e00801 100644 (file)
@@ -117,7 +117,7 @@ can be set in the source document with the &lt;?dbhtml?&gt; pseudo-attribute
 
 <refsynopsisdiv>
 <src:fragment id='titlefoil.html.frag'>
-<xsl:param name="titlefoil.html" select="'index.html'"/>
+<xsl:param name="titlefoil.html" select="concat('index', $html.ext)"/>
 </src:fragment>
 </refsynopsisdiv>
 
@@ -140,7 +140,7 @@ can be set in the source document with the &lt;?dbhtml?&gt; pseudo-attribute
 
 <refsynopsisdiv>
 <src:fragment id='toc.html.frag'>
-<xsl:param name="toc.html" select="'toc.html'"/>
+<xsl:param name="toc.html" select="concat('toc', $html.ext)"/>
 </src:fragment>
 </refsynopsisdiv>
 
index 82cfed29395795771d123e82c420cbbcc51d9f8c..d3816e50286ea352583757d8c515465f92ea6ad3 100644 (file)
   <xsl:param name="home" select="/slides"/>
   <xsl:param name="up"/>
   <xsl:param name="prev"/>
-  <xsl:param name="next" select="(foil|foilset)[1]"/>
+  <xsl:param name="next" select="(foil|foilgroup)[1]"/>
   <xsl:param name="toc"/>
 
   <div class="navhead">
index 5c2b3e06ba6fdcd719b5c10ffe0def398b7cf2db..c88a218ab883545e29a968b50b3cbeb04bcf03cf 100644 (file)
@@ -18,7 +18,7 @@
 <xsl:param name="but-xrewind.png" select="'inactive/but-rewind.png'"/>
 
 <!-- overrides for this stylesheet -->
-<xsl:param name="titlefoil.html" select="'index.html'"/>
+<xsl:param name="titlefoil.html" select="concat('index', $html.ext)"/>
 <xsl:param name="toc.width" select="20"/>
 
 <!-- ============================================================ -->