[gnome-doc-utils/mallard: 44/87] Exclude direct topic links from inverse guide links



commit 1a15b44173bafd0cbd3f3fd72932d3a317530462
Author: Shaun McCance <shaunm gnome org>
Date:   Fri Nov 14 12:05:39 2008 -0600

    Exclude direct topic links from inverse guide links
---
 xslt/mallard/html/mal2html-page.xsl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 8352136..a8f7033 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -72,7 +72,7 @@ REMARK: Describe this template
   <!-- FIXME: // selectors are slow -->
   <!-- FIXME: exclude $pagelinks from $guidelinks -->
   <xsl:variable name="guidelinks"
-                select="$cache//*[mal:info/mal:link[ type = 'guide'][ xref = $id]]"/>
+                select="$cache//*[mal:info/mal:link[ type = 'guide'][ xref = $id]][not(@id = $pagelinks/@xref)]"/>
   <xsl:if test="$pagelinks or $guidelinks">
     <div class="pagelinks">
       <xsl:for-each select="$pagelinks">
@@ -383,7 +383,7 @@ REMARK: Describe this template
   </html>
 </xsl:template>
 
-<!-- = guide = -->
+<!-- = page = -->
 <xsl:template match="mal:page">
   <div class="header">
     <xsl:apply-templates mode="mal2html.block.mode"



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