]> granicus.if.org Git - docbook-dsssl/commitdiff
Inherit parameters from slides.xsl; use templates to get graphic filenames
authorNorman Walsh <ndw@nwalsh.com>
Thu, 30 May 2002 11:51:44 +0000 (11:51 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 30 May 2002 11:51:44 +0000 (11:51 +0000)
slides/xsl/w3c.xsl

index 8ec3f5c409f03149e45efd354cd3fb88847908c5..8e0222e864449438f434e92fba2954613f2124e2 100644 (file)
@@ -4,14 +4,6 @@
 
 <xsl:import href="slides.xsl"/>
 
-<xsl:output method="html"/>
-
-<xsl:param name="css-stylesheet">w3c.css</xsl:param>
-<xsl:param name="output.indent" select="'yes'"/>
-<xsl:param name="debug" select="0"/>
-
-<xsl:strip-space elements="slides foil section"/>
-
 <xsl:template name="overlayDiv.attributes"/>
 
 <xsl:template name="logo">
@@ -30,7 +22,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>
           <link rel="top">
@@ -56,7 +48,7 @@
           <xsl:call-template name="body.attributes"/>
 
           <div class="navhead">
-            <table class="navbar" cellspacing="0" cellpadding="0" border="{$debug}"
+            <table class="navbar" cellspacing="0" cellpadding="0" border="0"
                    width="97%" summary="Navigation buttons">
               <tr valign="top">
                 <td align="left">
   </xsl:variable>
 
   <div class="navhead">
-    <table class="navbar" cellspacing="0" cellpadding="0" border="{$debug}" width="97%"
+    <table class="navbar" cellspacing="0" cellpadding="0" border="0" width="97%"
            summary="Navigation buttons">
       <tr valign="top">
         <td align="left">
         </td>
         <td valign="top" nowrap="nowrap" width="150">
           <div align="right">
-            <img src="{$graphics.dir}/bleft.png" border="0" width="32" height="32"
-                 alt=" "/>
+            <img border="0" width="32" height="32" alt=" ">
+              <xsl:attribute name="src">
+                <xsl:call-template name="w3c.bleft.image"/>
+              </xsl:attribute>
+            </img>
             <a rel="contents" href="toc.html" accesskey="C">
-              <img src="{$graphics.dir}/toc.png" border="0" width="32" height="32"
-                   alt=" Contents" title="Table of Contents"/>
+              <img border="0" width="32" height="32"
+                   alt=" Contents" title="Table of Contents">
+                <xsl:attribute name="src">
+                  <xsl:call-template name="w3c.toc.image"/>
+                </xsl:attribute>
+              </img>
             </a>
             <a rel="next" href="{$nextfile}" accesskey="N">
-              <img src="{$graphics.dir}/right.png" border="0" width="32" height="32"
-                   alt=" Next" title="{$nextfoil/title}"/>
+              <img border="0" width="32" height="32"
+                   alt=" Next" title="{$nextfoil/title}">
+                <xsl:attribute name="src">
+                  <xsl:call-template name="w3c.right.image"/>
+                </xsl:attribute>
+              </img>
             </a>
           </div>
         </td>
 
   <div class="navfoot">
     <hr class="foot"/>
-    <table class="footer" cellspacing="0" cellpadding="0" border="{$debug}" width="97%"
+    <table class="footer" cellspacing="0" cellpadding="0" border="0" width="97%"
            summary="footer">
       <tr valign="bottom">
         <td>&#160;</td>
-        <td align="right">
-          <p class="index">
-            <xsl:value-of select="count(preceding::foil)
-                                  + count(preceding::section)
-                                  + count(ancestor::section)
-                                  + 1"/>
-            <xsl:text> of </xsl:text>
-            <xsl:value-of select="count(//foil|//section) + 1"/>
-          </p>
-        </td>
+        <td>&#160;</td>
         <td valign="top" nowrap="nowrap" width="150">
           <div align="right">
-            <img src="{$graphics.dir}/bleft.png" border="0" width="32" height="32"
-                 alt=" "/>
+            <img border="0" width="32" height="32" alt=" ">
+              <xsl:attribute name="src">
+                <xsl:call-template name="w3c.bleft.image"/>
+              </xsl:attribute>
+            </img>
             <a rel="next" href="{$nextfile}" accesskey="N">
-              <img src="{$graphics.dir}/right.png" border="0" width="32" height="32"
-                   alt=" Next" title="{$nextfoil/title}"/>
+              <img border="0" width="32" height="32"
+                   alt=" Next" title="{$nextfoil/title}">
+                <xsl:attribute name="src">
+                  <xsl:call-template name="w3c.right.image"/>
+                </xsl:attribute>
+              </img>
             </a>
           </div>
         </td>
   </xsl:variable>
 
   <div class="navhead">
-    <table class="navbar" cellspacing="0" cellpadding="0" border="{$debug}" width="97%"
+    <table class="navbar" cellspacing="0" cellpadding="0" border="0" width="97%"
            summary="Navigation buttons">
       <tr valign="top">
         <td align="left">
         <td valign="top" nowrap="nowrap" width="150">
           <div align="right">
             <a rel="previous" href="{$prevfile}" accesskey="P">
-              <img src="{$graphics.dir}/left.png" border="0" width="32" height="32"
-                   alt=" Previous" title="{$prevfoil/title}"/>
+              <img border="0" width="32" height="32"
+                   alt=" Previous" title="{$prevfoil/title}">
+                <xsl:attribute name="src">
+                  <xsl:call-template name="w3c.left.image"/>
+                </xsl:attribute>
+              </img>
             </a>
             <a rel="contents" href="toc.html" accesskey="C">
-              <img src="{$graphics.dir}/toc.png" border="0" width="32" height="32"
-                   alt=" Contents" title="Table of Contents"/>
+              <img border="0" width="32" height="32"
+                   alt=" Contents" title="Table of Contents">
+                <xsl:attribute name="src">
+                  <xsl:call-template name="w3c.toc.image"/>
+                </xsl:attribute>
+              </img>
             </a>
             <a rel="next" href="{$nextfile}" accesskey="N">
-              <img src="{$graphics.dir}/right.png" border="0" width="32" height="32"
-                   alt=" Next" title="{$nextfoil/title}"/>
+              <img border="0" width="32" height="32"
+                   alt=" Next" title="{$nextfoil/title}">
+                <xsl:attribute name="src">
+                  <xsl:call-template name="w3c.right.image"/>
+                </xsl:attribute>
+              </img>
             </a>
           </div>
         </td>
 
   <div class="navfoot">
     <hr class="foot"/>
-    <table class="footer" cellspacing="0" cellpadding="0" border="{$debug}" width="97%"
+    <table class="footer" cellspacing="0" cellpadding="0" border="0" width="97%"
            summary="footer">
       <tr valign="bottom">
         <td>
                                   + count(ancestor::section)
                                   + 1"/>
             <xsl:text> of </xsl:text>
-            <xsl:value-of select="count(//foil|//section) + 1"/>
+            <xsl:value-of select="count(//foil|//section)"/>
           </p>
         </td>
         <td valign="top" nowrap="nowrap" width="150">
           <div align="right">
             <a rel="previous" href="{$prevfile}" accesskey="P">
-              <img src="{$graphics.dir}/left.png" border="0" width="32" height="32"
-                   alt=" Previous" title="{$prevfoil/title}"/>
+              <img border="0" width="32" height="32"
+                   alt=" Previous" title="{$prevfoil/title}">
+                <xsl:attribute name="src">
+                  <xsl:call-template name="w3c.left.image"/>
+                </xsl:attribute>
+              </img>
             </a>
             <a rel="next" href="{$nextfile}" accesskey="N">
-              <img src="{$graphics.dir}/right.png" border="0" width="32" height="32"
-                   alt=" Next" title="{$nextfoil/title}"/>
+              <img border="0" width="32" height="32"
+                   alt=" Next" title="{$nextfoil/title}">
+                <xsl:attribute name="src">
+                  <xsl:call-template name="w3c.right.image"/>
+                </xsl:attribute>
+              </img>
             </a>
           </div>
         </td>
   </xsl:variable>
 
   <div class="navhead">
-    <table class="navbar" cellspacing="0" cellpadding="0" border="{$debug}" width="97%"
+    <table class="navbar" cellspacing="0" cellpadding="0" border="0" width="97%"
            summary="Navigation buttons">
       <tr valign="top">
         <td align="left">
         <td valign="top" nowrap="nowrap" width="150">
           <div align="right">
             <a rel="previous" href="{$prevfile}" accesskey="P">
-              <img src="{$graphics.dir}/left.png" border="0" width="32" height="32"
-                   alt=" Previous" title="{$prevfoil/title}"/>
+              <img border="0" width="32" height="32"
+                   alt=" Previous" title="{$prevfoil/title}">
+                <xsl:attribute name="src">
+                  <xsl:call-template name="w3c.left.image"/>
+                </xsl:attribute>
+              </img>
             </a>
             <a rel="contents" href="toc.html" accesskey="C">
-              <img src="{$graphics.dir}/toc.png" border="0" width="32" height="32"
-                   alt=" Contents" title="Table of Contents"/>
+              <img border="0" width="32" height="32"
+                   alt=" Contents" title="Table of Contents">
+                <xsl:attribute name="src">
+                  <xsl:call-template name="w3c.toc.image"/>
+                </xsl:attribute>
+              </img>
             </a>
             <xsl:choose>
               <xsl:when test="$nextfoil != ''">
                 <a rel="next" href="{$nextfile}" accesskey="N">
-                  <img src="{$graphics.dir}/right.png" border="0" width="32" height="32"
-                       alt=" Next" title="{$nextfoil/title}"/>
+                  <img border="0" width="32" height="32"
+                       alt=" Next" title="{$nextfoil/title}">
+                    <xsl:attribute name="src">
+                      <xsl:call-template name="w3c.right.image"/>
+                    </xsl:attribute>
+                  </img>
                 </a>
               </xsl:when>
               <xsl:otherwise>
-                <img src="{$graphics.dir}/bright.png" border="0" width="32" height="32"
-                     alt=" The End."/>
+                <img border="0" width="32" height="32" alt=" The End.">
+                  <xsl:attribute name="src">
+                    <xsl:call-template name="w3c.bright.image"/>
+                  </xsl:attribute>
+                </img>
               </xsl:otherwise>
             </xsl:choose>
           </div>
 
   <div class="navfoot">
     <hr class="foot"/>
-    <table class="footer" cellspacing="0" cellpadding="0" border="{$debug}" width="97%"
+    <table class="footer" cellspacing="0" cellpadding="0" border="0" width="97%"
            summary="footer">
       <tr valign="bottom">
         <td>
             <xsl:value-of select="count(preceding::foil)
                                   + count(preceding::section)
                                   + count(ancestor::section)
-                                  + 2"/>
+                                  + 1"/>
             <xsl:text> of </xsl:text>
-            <xsl:value-of select="count(//foil|//section) + 1"/>
+            <xsl:value-of select="count(//foil|//section)"/>
           </p>
         </td>
         <td valign="top" nowrap="nowrap" width="150">
           <div align="right">
             <a rel="previous" href="{$prevfile}" accesskey="P">
-              <img src="{$graphics.dir}/left.png" border="0" width="32" height="32"
-                   alt=" Previous" title="{$prevfoil/title}"/>
+              <img border="0" width="32" height="32"
+                   alt=" Previous" title="{$prevfoil/title}">
+                  <xsl:attribute name="src">
+                    <xsl:call-template name="w3c.left.image"/>
+                  </xsl:attribute>
+                </img>
             </a>
             <xsl:choose>
               <xsl:when test="$nextfoil != ''">
                 <a rel="next" href="{$nextfile}" accesskey="N">
-                  <img src="{$graphics.dir}/right.png" border="0" width="32" height="32"
-                       alt=" Next" title="{$nextfoil/title}"/>
+                  <img border="0" width="32" height="32"
+                       alt=" Next" title="{$nextfoil/title}">
+                  <xsl:attribute name="src">
+                    <xsl:call-template name="w3c.right.image"/>
+                  </xsl:attribute>
+                </img>
                 </a>
               </xsl:when>
               <xsl:otherwise>
-                <img src="{$graphics.dir}/bright.png" border="0" width="32" height="32"
-                     alt=" The End."/>
+                <img border="0" width="32" height="32" alt=" The End.">
+                  <xsl:attribute name="src">
+                    <xsl:call-template name="w3c.bright.image"/>
+                  </xsl:attribute>
+                </img>
               </xsl:otherwise>
             </xsl:choose>
           </div>