]> granicus.if.org Git - docbook-dsssl/commitdiff
Added new templates to wrap home.navhead.*
authorNorman Walsh <ndw@nwalsh.com>
Mon, 12 Nov 2001 21:24:42 +0000 (21:24 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 12 Nov 2001 21:24:42 +0000 (21:24 +0000)
website/xsl/tabular.xsl

index b3dd0fcc1c703197825d032d9f278a184147e5e3..4ee0a789aca350eaa62576c03c5ab51171c04a77 100644 (file)
@@ -50,6 +50,8 @@
   </xsl:attribute>
 </xsl:attribute-set>
 
+<xsl:param name="body.columns" select="2"/>
+
 <!-- ==================================================================== -->
 
 <xsl:template match="/">
 </xsl:template>
 
 <xsl:template name="home.navhead">
-<xsl:text>Navhead</xsl:text>
+  <xsl:text>Navhead</xsl:text>
 </xsl:template>
 
 <xsl:template name="home.navhead.upperright">
-<xsl:text>Upper-right</xsl:text>
+  <xsl:text>Upper-right</xsl:text>
+</xsl:template>
+
+<xsl:template name="home.navhead.cell">
+  <td width="50%" valign="middle" align="left">
+    <xsl:call-template name="home.navhead"/>
+  </td>
+</xsl:template>
+
+<xsl:template name="home.navhead.upperright.cell">
+  <td width="50%" valign="middle" align="right">
+    <xsl:call-template name="home.navhead.upperright"/>
+  </td>
 </xsl:template>
 
 <xsl:template name="home.navhead.separator">
               </xsl:choose>
             </td>
 
+            <xsl:call-template name="hspacer"/>
+
             <td xsl:use-attribute-sets="table.body.cell.properties">
               <xsl:if test="$navbodywidth != ''">
                 <xsl:attribute name="width">
                 <table border="0" summary="home page extra headers"
                        cellpadding="0" cellspacing="0" width="100%">
                   <tr>
-                    <td width="50%" valign="middle" align="left">
-                      <xsl:call-template name="home.navhead"/>
-                    </td>
-                    <td width="50%" valign="middle" align="right">
-                      <xsl:call-template name="home.navhead.upperright"/>
-                    </td>
+                    <xsl:call-template name="home.navhead.cell"/>
+                    <xsl:call-template name="home.navhead.upperright.cell"/>
                   </tr>
                 </table>
                 <xsl:call-template name="home.navhead.separator"/>
   </html>
 </xsl:template>
 
+<xsl:template name="hspacer">
+  <!-- nop -->
+</xsl:template>
+
 <xsl:template match="config[@param='filename']" mode="head.mode">
 </xsl:template>