[yelp-xsl] mal2html-links: The link type is "prevnext", not "next"



commit da0ccb51c98bf74d510ee3a07578a67706a067d4
Author: Shaun McCance <shaunm gnome org>
Date:   Wed Nov 16 10:18:16 2011 -0500

    mal2html-links: The link type is "prevnext", not "next"

 xslt/mallard/html/mal2html-links.xsl |    4 ++--
 xslt/mallard/html/mal2html-page.xsl  |   10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-links.xsl b/xslt/mallard/html/mal2html-links.xsl
index 34dd056..9e8e7ce 100644
--- a/xslt/mallard/html/mal2html-links.xsl
+++ b/xslt/mallard/html/mal2html-links.xsl
@@ -199,7 +199,7 @@ the links itself. They must be passed in with the ${links} parameter.
 
 
 <!--**==========================================================================
-mal2html.links.next
+mal2html.links.prevnext
 Output links to the previous and next pages.
 :Revision:version="1.0" date="2011-06-15" status="final"
 $node: A #{links} or #{page} element to link from.
@@ -213,7 +213,7 @@ If the #{links} element has the style hint #{top}, it will be inserted before
 the page title, instead of in its position on the page. This is handled by the
 calling functions in !{mal2html-page}.
 -->
-<xsl:template name="mal2html.links.next" match="mal:links[ type = 'next']">
+<xsl:template name="mal2html.links.prevnext" match="mal:links[ type = 'prevnext']">
   <xsl:param name="node" select="."/>
   <xsl:variable name="page" select="$node/ancestor-or-self::mal:page[last()]"/>
   <xsl:variable name="linkid">
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index d091b54..f90bdec 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -473,12 +473,12 @@ REMARK: Describe this template
 <xsl:template mode="html.body.mode" match="mal:page">
   <xsl:call-template name="mal2html.editor.banner"/>
   <xsl:choose>
-    <xsl:when test="not(mal:links[ type = 'next'])">
-      <xsl:call-template name="mal2html.links.next"/>
+    <xsl:when test="not(mal:links[ type = 'prevnext'])">
+      <xsl:call-template name="mal2html.links.prevnext"/>
     </xsl:when>
     <xsl:otherwise>
       <xsl:apply-templates
-          select="mal:links[ type = 'next'][contains(concat(' ', @style, ' '), ' top ')]">
+          select="mal:links[ type = 'prevnext'][contains(concat(' ', @style, ' '), ' top ')]">
       </xsl:apply-templates>
     </xsl:otherwise>
   </xsl:choose>
@@ -567,7 +567,7 @@ REMARK: Describe this template
             <xsl:with-param name="links" select="$seealsonodes"/>
           </xsl:apply-templates>
         </xsl:when>
-        <xsl:when test="self::mal:links[ type = 'next']">
+        <xsl:when test="self::mal:links[ type = 'prevnext']">
           <xsl:if test="not(contains(concat(' ', @style, ' '), ' top '))">
             <xsl:apply-templates select="."/>
           </xsl:if>
@@ -635,7 +635,7 @@ REMARK: Describe this template
                 <xsl:with-param name="links" select="$seealsonodes"/>
               </xsl:apply-templates>
             </xsl:when>
-            <xsl:when test="self::mal:links[ type = 'next']">
+            <xsl:when test="self::mal:links[ type = 'prevnext']">
               <xsl:if test="not(contains(concat(' ', @style, ' '), ' top '))">
                 <xsl:apply-templates select=".">
                   <xsl:with-param name="depth" select="$depth + 1"/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]