]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix parameters and graphic links
authorNorman Walsh <ndw@nwalsh.com>
Thu, 30 May 2002 12:07:12 +0000 (12:07 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 30 May 2002 12:07:12 +0000 (12:07 +0000)
slides/xsl/tables.xsl

index 6b2046553d2bc5f2bffb203284b4a4c566518ff0..5faab046988542373cb464ea1089e36159238b2d 100644 (file)
@@ -7,9 +7,8 @@
 <xsl:param name="blank.image" select="'blank.gif'"/>
 <xsl:param name="arrow.image" select="'arrow.gif'"/>
 
-<xsl:param name="textbgcolor">white</xsl:param>
-<xsl:param name="navbgcolor">#6A719C</xsl:param>
-<xsl:param name="navtocwidth">220</xsl:param>
+<xsl:param name="toc.bg.color">#6A719C</xsl:param>
+<xsl:param name="toc.width">220</xsl:param>
 
 <!-- ============================================================ -->
 
@@ -26,7 +25,7 @@
           <title><xsl:value-of select="title"/></title>
           <link type="text/css" rel="stylesheet">
             <xsl:attribute name="href">
-              <xsl:call-template name="css-stylesheet"/>
+              <xsl:call-template name="css.stylesheet"/>
             </xsl:attribute>
           </link>
         </head>
@@ -51,9 +50,7 @@
                   <a href="foil01.html">
                     <img alt="Next" border="0">
                       <xsl:attribute name="src">
-                        <xsl:call-template name="graphics.dir"/>
-                        <xsl:text>/</xsl:text>
-                        <xsl:value-of select="$right.image"/>
+                        <xsl:call-template name="right.image"/>
                       </xsl:attribute>
                     </img>
                   </a>
         <title><xsl:value-of select="title"/></title>
         <link type="text/css" rel="stylesheet">
           <xsl:attribute name="href">
-            <xsl:call-template name="css-stylesheet"/>
+            <xsl:call-template name="css.stylesheet"/>
           </xsl:attribute>
         </link>
       </head>
         <table border="0" width="100%" summary="Navigation and body table"
                cellpadding="0" cellspacing="0">
           <tr>
-            <td bgcolor="{$navbgcolor}" width="{$navtocwidth}"
+            <td bgcolor="{$toc.bg.color}" width="{$toc.width}"
                 valign="top" align="center">
               <div class="ttoc">
                 <span class="ttoc-title">
                 </span>
               </div>
             </td>
-            <td bgcolor="{$textbgcolor}" valign="top" align="left">
+            <td>&#160;</td>
+            <td bgcolor="{$body.bg.color}" valign="top" align="left">
               <a name="{$id}"/>
               <xsl:call-template name="section-top-nav"/>
-              <hr/>
             </td>
           </tr>
           <tr>
-            <td bgcolor="{$navbgcolor}" width="{$navtocwidth}"
+            <td bgcolor="{$toc.bg.color}" width="{$toc.width}"
                 valign="top" align="left">
               <div class="ttoc">
                 <xsl:apply-templates select="." mode="toc"/>
               </div>
             </td>
-            <td bgcolor="{$textbgcolor}" valign="top" align="left">
+            <td>&#160;</td>
+            <td bgcolor="{$body.bg.color}" valign="top" align="left">
               <div class="{name(.)}">
 
                 <xsl:apply-templates/>
             </td>
           </tr>
           <tr>
-            <td bgcolor="{$navbgcolor}" width="{$navtocwidth}">
+            <td bgcolor="{$toc.bg.color}" width="{$toc.width}">
               <xsl:text>&#160;</xsl:text>
             </td>
-            <td bgcolor="{$textbgcolor}" valign="top" align="left">
-              <hr/>
+            <td>&#160;</td>
+            <td bgcolor="{$body.bg.color}" valign="top" align="left">
               <xsl:call-template name="section-bottom-nav"/>
             </td>
           </tr>
         <title><xsl:value-of select="title"/></title>
         <link type="text/css" rel="stylesheet">
           <xsl:attribute name="href">
-            <xsl:call-template name="css-stylesheet"/>
+            <xsl:call-template name="css.stylesheet"/>
           </xsl:attribute>
         </link>
       </head>
         <table border="0" width="100%" summary="Navigation and body table"
                cellpadding="0" cellspacing="0">
           <tr>
-            <td bgcolor="{$navbgcolor}" width="{$navtocwidth}"
+            <td bgcolor="{$toc.bg.color}" width="{$toc.width}"
                 valign="top" align="center">
               <div class="ttoc">
                 <span class="ttoc-title">
                 </span>
               </div>
             </td>
-            <td bgcolor="{$textbgcolor}" valign="top" align="left">
+            <td>&#160;</td>
+            <td bgcolor="{$body.bg.color}" valign="top" align="left">
               <a name="{$id}"/>
               <xsl:call-template name="foil-top-nav"/>
-              <hr/>
             </td>
           </tr>
           <tr>
-            <td bgcolor="{$navbgcolor}" width="{$navtocwidth}"
+            <td bgcolor="{$toc.bg.color}" width="{$toc.width}"
                 valign="top" align="left">
               <div class="ttoc">
                 <xsl:apply-templates select="." mode="toc"/>
               </div>
             </td>
-            <td bgcolor="{$textbgcolor}" valign="top" align="left">
+            <td>&#160;</td>
+            <td bgcolor="{$body.bg.color}" valign="top" align="left">
               <div class="{name(.)}" id="{$id}">
                 <a name="{$id}"/>
 
             </td>
           </tr>
           <tr>
-            <td bgcolor="{$navbgcolor}" width="{$navtocwidth}">
+            <td bgcolor="{$toc.bg.color}" width="{$toc.width}">
               <xsl:text>&#160;</xsl:text>
             </td>
-            <td bgcolor="{$textbgcolor}" valign="top" align="left">
-              <hr/>
+            <td>&#160;</td>
+            <td bgcolor="{$body.bg.color}" valign="top" align="left">
               <xsl:call-template name="foil-bottom-nav"/>
             </td>
           </tr>
       <xsl:when test="$thissection = .">
         <img alt="+">
           <xsl:attribute name="src">
-            <xsl:call-template name="graphics.dir"/>
-            <xsl:text>/</xsl:text>
-            <xsl:value-of select="$arrow.image"/>
+            <xsl:call-template name="graphics-file">
+              <xsl:with-param name="image" select="$arrow.image"/>
+            </xsl:call-template>
           </xsl:attribute>
         </img>
       </xsl:when>
       <xsl:otherwise>
         <img alt=" ">
           <xsl:attribute name="src">
-            <xsl:call-template name="graphics.dir"/>
-            <xsl:text>/</xsl:text>
-            <xsl:value-of select="$blank.image"/>
+            <xsl:call-template name="graphics-file">
+              <xsl:with-param name="image" select="$blank.image"/>
+            </xsl:call-template>
           </xsl:attribute>
         </img>
       </xsl:otherwise>
       <xsl:for-each select="foil">
         <img alt=" ">
           <xsl:attribute name="src">
-            <xsl:call-template name="graphics.dir"/>
-            <xsl:text>/</xsl:text>
-            <xsl:value-of select="$blank.image"/>
+            <xsl:call-template name="graphics-file">
+              <xsl:with-param name="image" select="$blank.image"/>
+            </xsl:call-template>
           </xsl:attribute>
         </img>
         <img alt=" ">
           <xsl:attribute name="src">
-            <xsl:call-template name="graphics.dir"/>
-            <xsl:text>/</xsl:text>
-            <xsl:value-of select="$blank.image"/>
+            <xsl:call-template name="graphics-file">
+              <xsl:with-param name="image" select="$blank.image"/>
+            </xsl:call-template>
           </xsl:attribute>
         </img>
 
       <xsl:for-each select="/slides/section">
         <img alt=" ">
           <xsl:attribute name="src">
-            <xsl:call-template name="graphics.dir"/>
-            <xsl:text>/</xsl:text>
-            <xsl:value-of select="$blank.image"/>
+            <xsl:call-template name="graphics-file">
+              <xsl:with-param name="image" select="$blank.image"/>
+            </xsl:call-template>
           </xsl:attribute>
         </img>
         <span class="ttoc-section">
           <xsl:for-each select="foil">
             <img alt=" ">
               <xsl:attribute name="src">
-                <xsl:call-template name="graphics.dir"/>
-                <xsl:text>/</xsl:text>
-                <xsl:value-of select="$blank.image"/>
+                <xsl:call-template name="graphics-file">
+                  <xsl:with-param name="image" select="$blank.image"/>
+                </xsl:call-template>
               </xsl:attribute>
             </img>
 
               <xsl:when test="$thisfoil = .">
                 <img alt="+">
                   <xsl:attribute name="src">
-                    <xsl:call-template name="graphics.dir"/>
-                    <xsl:text>/</xsl:text>
-                    <xsl:value-of select="$arrow.image"/>
+                    <xsl:call-template name="graphics-file">
+                      <xsl:with-param name="image" select="$arrow.image"/>
+                    </xsl:call-template>
                   </xsl:attribute>
                 </img>
               </xsl:when>
               <xsl:otherwise>
                 <img alt=" ">
                   <xsl:attribute name="src">
-                    <xsl:call-template name="graphics.dir"/>
-                    <xsl:text>/</xsl:text>
-                    <xsl:value-of select="$blank.image"/>
+                    <xsl:call-template name="graphics-file">
+                      <xsl:with-param name="image" select="$blank.image"/>
+                    </xsl:call-template>
                   </xsl:attribute>
                 </img>
               </xsl:otherwise>