[yelp-xsl] Implement @style='linklist' for guide links



commit c0feffea6fee279d01204b61ddef9a13b86cb5ba
Author: Shaun McCance <shaunm gnome org>
Date:   Tue Nov 2 09:56:36 2010 -0400

    Implement @style='linklist' for guide links

 xslt/mallard/html/mal2html-page.xsl |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 6a2a655..757a639 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -589,6 +589,18 @@ REMARK: Describe this template
           <xsl:apply-templates mode="mal2html.block.mode" select="$node/mal:title"/>
         </xsl:if>
         <xsl:choose>
+          <xsl:when test="contains(concat(' ', $node/@style, ' '), ' linklist ')">
+            <ul>
+              <xsl:for-each select="$_links">
+                <xsl:sort data-type="number" select="@groupsort"/>
+                <xsl:sort select="mal:title[ type = 'sort']"/>
+                <xsl:call-template name="mal2html.page.autolink">
+                  <xsl:with-param name="xref" select="@xref"/>
+                  <xsl:with-param name="role" select="'guide'"/>
+                </xsl:call-template>
+              </xsl:for-each>
+            </ul>
+          </xsl:when>
           <xsl:when test="contains(concat(' ', $node/@style, ' '), ' 2column ')">
             <xsl:variable name="coltot" select="ceiling(count($_links) div 2)"/>
             <table class="twocolumn"><tr>
@@ -648,7 +660,7 @@ REMARK: Describe this template
 mal2html.title.mode
 FIXME
 
-FIXE
+FIXME
 -->
 <!-- = subtitle = -->
 <xsl:template mode="mal2html.title.mode" match="mal:subtitle">



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