]> granicus.if.org Git - docbook-dsssl/commitdiff
Generate spaces in the navfooter (for overlay); improve the site navigation links
authorNorman Walsh <ndw@nwalsh.com>
Fri, 24 May 2002 15:19:00 +0000 (15:19 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 24 May 2002 15:19:00 +0000 (15:19 +0000)
slides/xsl/slides.xsl

index 2b8e2da88cbcdd66d7a151cd42df83d3d9522779..a259800db21cd28798158f8eb50652b33dcc60fe 100644 (file)
               <xsl:value-of select="(following::section|following::foil)[1]/title"/>
             </xsl:attribute>
           </link>
+
+          <xsl:for-each select="../section">
+            <link rel="section">
+              <xsl:attribute name="href">
+                <xsl:apply-templates select="." mode="filename"/>
+              </xsl:attribute>
+              <xsl:attribute name="title">
+                <xsl:value-of select="title[1]"/>
+              </xsl:attribute>
+            </link>
+          </xsl:for-each>
         </head>
         <body class="titlepage">
           <xsl:call-template name="body.attributes"/>
             </xsl:attribute>
           </link>
         </xsl:for-each>
+
+        <xsl:for-each select="../section">
+          <link rel="section">
+            <xsl:attribute name="href">
+              <xsl:apply-templates select="." mode="filename"/>
+            </xsl:attribute>
+            <xsl:attribute name="title">
+              <xsl:value-of select="title[1]"/>
+            </xsl:attribute>
+          </link>
+        </xsl:for-each>
       </head>
       <body class="section">
         <xsl:call-template name="body.attributes"/>
             </xsl:attribute>
           </link>
         </xsl:if>
+
+          <xsl:for-each select="../../section">
+            <link rel="section">
+              <xsl:attribute name="href">
+                <xsl:apply-templates select="." mode="filename"/>
+              </xsl:attribute>
+              <xsl:attribute name="title">
+                <xsl:value-of select="title[1]"/>
+              </xsl:attribute>
+            </link>
+          </xsl:for-each>
+
+          <xsl:for-each select="../foil">
+            <link rel="slides">
+              <xsl:attribute name="href">
+                <xsl:apply-templates select="." mode="filename"/>
+              </xsl:attribute>
+              <xsl:attribute name="title">
+                <xsl:value-of select="title[1]"/>
+              </xsl:attribute>
+            </link>
+         </xsl:for-each>
       </head>
       <body class="foil">
         <xsl:call-template name="body.attributes"/>
       <tr>
         <td align="left" width="80%" valign="top">
           <span class="navfooter">
+            <xsl:text>&#160;</xsl:text>
             <xsl:apply-templates select="/slides/slidesinfo/copyright"
                                  mode="slide.navigation.mode"/>
           </span>
         <td align="right" width="20%" valign="top">
           <span class="navfooter">
             <xsl:number count="foil" level="any"/>
+            <xsl:text>&#160;</xsl:text>
           </span>
         </td>
       </tr>