]> granicus.if.org Git - docbook-dsssl/commitdiff
Added links to first and last in navigation; support foilgroup.toc; fixed css.stylesh...
authorNorman Walsh <ndw@nwalsh.com>
Fri, 11 Jul 2003 12:04:01 +0000 (12:04 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 11 Jul 2003 12:04:01 +0000 (12:04 +0000)
slides/xsl/html/slides-common.xsl

index ec6eaa72027026dde94604186b04129c31a373db..77a7b099008efc252227b2f60e4425674f70c6a4 100644 (file)
         <xsl:value-of select="($home/title|$home/slidesinfo/title)[1]"/>
       </xsl:attribute>
     </link>
+
+    <link rel="first">
+      <xsl:attribute name="href">
+        <xsl:apply-templates select="$home" mode="filename"/>
+      </xsl:attribute>
+      <xsl:attribute name="title">
+        <xsl:value-of select="($home/title|$home/slidesinfo/title)[1]"/>
+      </xsl:attribute>
+    </link>
   </xsl:if>
 
   <xsl:if test="$up">
         <xsl:value-of select="$next/title"/>
       </xsl:attribute>
     </link>
+
+    <xsl:variable name="last" select="$next/following::foil[last()]"/>
+    <xsl:if test="$last">
+      <link rel="last">
+        <xsl:attribute name="href">
+          <xsl:apply-templates select="$last" mode="filename"/>
+        </xsl:attribute>
+        <xsl:attribute name="title">
+          <xsl:value-of select="$last/title"/>
+        </xsl:attribute>
+      </link>
+    </xsl:if>
   </xsl:if>
 
   <xsl:for-each select="foil">
                 <xsl:with-param name="next" select="$next"/>
                 <xsl:with-param name="prev" select="$prev"/>
               </xsl:call-template>
+
+              <xsl:if test="$foilgroup.toc != 0">
+                <dl>
+                  <xsl:apply-templates select="foil" mode="toc"/>
+                </dl>
+              </xsl:if>
             </div>
 
             <div id="overlayDiv">
     <xsl:otherwise>
       <link type="text/css" rel="stylesheet">
         <xsl:attribute name="href">
-          <xsl:call-template name="css.stylesheet">
+          <xsl:call-template name="css-file">
             <xsl:with-param name="css" select="$href"/>
           </xsl:call-template>
         </xsl:attribute>