[gnome-doc-utils/mallard: 38/87] Add back in some guide links I'd missed



commit 915916a7f6d39dfe83c27f8466ff0a6b1e69f42c
Author: Shaun McCance <shaunm gnome org>
Date:   Thu Nov 13 14:21:57 2008 -0600

    Add back in some guide links I'd missed
---
 xslt/mallard/html/mal2html-page.xsl |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index a9bb349..47310d2 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -257,6 +257,26 @@ REMARK: Describe this template
       </div>
       <div class="seealsolinks">
         <ul class="seealsolinks">
+          <xsl:for-each select="$pagelinks">
+            <xsl:variable name="position">
+              <xsl:choose>
+                <xsl:when test="last() = 1 and count($guidelinks) = 0">
+                  <xsl:text>only</xsl:text>
+                </xsl:when>
+                <xsl:when test="position() = 1">
+                  <xsl:text>first</xsl:text>
+                </xsl:when>
+                <xsl:when test="position() = last() and count($guidelinks) = 0">
+                  <xsl:text>last</xsl:text>
+                </xsl:when>
+              </xsl:choose>
+            </xsl:variable>
+            <xsl:call-template name="mal2html.page.seealsolink">
+              <xsl:with-param name="node" select="$node"/>
+              <xsl:with-param name="page" select="."/>
+              <xsl:with-param name="position" select="$position"/>
+            </xsl:call-template>
+          </xsl:for-each>
           <!-- FIXME: exclude pagelinks -->
           <xsl:for-each select="$guidelinks">
             <xsl:variable name="linkid">



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