]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix gentext.nav.* templates
authorNorman Walsh <ndw@nwalsh.com>
Tue, 25 Sep 2001 12:32:54 +0000 (12:32 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 25 Sep 2001 12:32:54 +0000 (12:32 +0000)
xsl/common/l10n.xsl
xsl/html/chunk-common.xsl

index da77cd363c6b924c98078be911dbf7c760f29c22..c52d6637e3140bba0edb1cbbe6ee6103c5ded87d 100644 (file)
 </xsl:template>
 
 <xsl:template name="gentext.edited.by">
-  <xsl:call-template name="gentext.element.name">
-    <xsl:with-param name="element.name">Editedby</xsl:with-param>
+  <xsl:call-template name="gentext">
+    <xsl:with-param name="key" select="'Editedby'"/>
   </xsl:call-template>
 </xsl:template>
 
 <xsl:template name="gentext.by">
-  <xsl:call-template name="gentext.element.name">
-    <xsl:with-param name="element.name">by</xsl:with-param>
+  <xsl:call-template name="gentext">
+    <xsl:with-param name="key" select="'by'"/>
   </xsl:call-template>
 </xsl:template>
 
 </xsl:template>
 
 <xsl:template name="gentext.nav.prev">
-  <xsl:call-template name="gentext.element.name">
-    <xsl:with-param name="element.name">nav-prev</xsl:with-param>
+  <xsl:call-template name="gentext">
+    <xsl:with-param name="key" select="'nav-prev'"/>
   </xsl:call-template>
 </xsl:template>
 
 <xsl:template name="gentext.nav.next">
-  <xsl:call-template name="gentext.element.name">
-    <xsl:with-param name="element.name">nav-next</xsl:with-param>
+  <xsl:call-template name="gentext">
+    <xsl:with-param name="key" select="'nav-next'"/>
   </xsl:call-template>
 </xsl:template>
 
 <xsl:template name="gentext.nav.home">
-  <xsl:call-template name="gentext.element.name">
-    <xsl:with-param name="element.name">nav-home</xsl:with-param>
+  <xsl:call-template name="gentext">
+    <xsl:with-param name="key" select="'nav-home'"/>
   </xsl:call-template>
 </xsl:template>
 
 <xsl:template name="gentext.nav.up">
-  <xsl:call-template name="gentext.element.name">
-    <xsl:with-param name="element.name">nav-up</xsl:with-param>
+  <xsl:call-template name="gentext">
+    <xsl:with-param name="key" select="'nav-up'"/>
   </xsl:call-template>
 </xsl:template>
 
index 088cabc5fa4a1229159b8f2557d687193d86d861..798232cb7446084933d91ef4b1d7adfc41bde9c1 100644 (file)
@@ -506,9 +506,7 @@ its parent.
                     <xsl:with-param name="object" select="$prev"/>
                   </xsl:call-template>
                 </xsl:attribute>
-                <xsl:call-template name="gentext">
-                  <xsl:with-param name="key">nav-prev</xsl:with-param>
-                </xsl:call-template>
+                <xsl:call-template name="gentext.nav.prev"/>
               </a>
             </xsl:if>
             <xsl:text>&#160;</xsl:text>
@@ -530,9 +528,7 @@ its parent.
                     <xsl:with-param name="object" select="$next"/>
                   </xsl:call-template>
                 </xsl:attribute>
-                <xsl:call-template name="gentext">
-                  <xsl:with-param name="key">nav-next</xsl:with-param>
-                </xsl:call-template>
+                <xsl:call-template name="gentext.nav.next"/>
               </a>
             </xsl:if>
           </td>
@@ -564,9 +560,7 @@ its parent.
                     <xsl:with-param name="object" select="$prev"/>
                   </xsl:call-template>
                 </xsl:attribute>
-                <xsl:call-template name="gentext">
-                  <xsl:with-param name="key">nav-prev</xsl:with-param>
-                </xsl:call-template>
+                <xsl:call-template name="gentext.nav.prev"/>
               </a>
             </xsl:if>
             <xsl:text>&#160;</xsl:text>
@@ -580,9 +574,7 @@ its parent.
                       <xsl:with-param name="object" select="$home"/>
                     </xsl:call-template>
                   </xsl:attribute>
-                  <xsl:call-template name="gentext">
-                    <xsl:with-param name="key">nav-home</xsl:with-param>
-                  </xsl:call-template>
+                  <xsl:call-template name="gentext.nav.home"/>
                 </a>
               </xsl:when>
               <xsl:otherwise>&#160;</xsl:otherwise>
@@ -597,9 +589,7 @@ its parent.
                     <xsl:with-param name="object" select="$next"/>
                   </xsl:call-template>
                 </xsl:attribute>
-                <xsl:call-template name="gentext">
-                  <xsl:with-param name="key">nav-next</xsl:with-param>
-                </xsl:call-template>
+                <xsl:call-template name="gentext.nav.next"/>
               </a>
             </xsl:if>
           </td>
@@ -619,9 +609,7 @@ its parent.
                       <xsl:with-param name="object" select="$up"/>
                     </xsl:call-template>
                   </xsl:attribute>
-                  <xsl:call-template name="gentext">
-                    <xsl:with-param name="key">nav-up</xsl:with-param>
-                  </xsl:call-template>
+                  <xsl:call-template name="gentext.nav.up"/>
                 </a>
               </xsl:when>
               <xsl:otherwise>&#160;</xsl:otherwise>