[yelp] mal2html.xsl: Support the install action scheme



commit bbf692f648b9d81db344c9389d09889da4d05cb0
Author: Shaun McCance <shaunm gnome org>
Date:   Sun Jul 31 13:57:28 2011 -0400

    mal2html.xsl: Support the install action scheme

 data/xslt/mal2html.xsl.in |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/data/xslt/mal2html.xsl.in b/data/xslt/mal2html.xsl.in
index 2272c4a..8b9238c 100644
--- a/data/xslt/mal2html.xsl.in
+++ b/data/xslt/mal2html.xsl.in
@@ -14,15 +14,21 @@
 
 <xsl:param name="mal2html.editor_mode" select="$yelp.editor_mode"/>
 
+<xsl:param name="mal.if.supports.custom"
+           select="'action:install'"/>
+
 <xsl:param name="mal.cache" select="yelp:input()"/>
-<xsl:key name="mal.cache.key" match="mal:page | mal:section" use="@id"/>
 
 <!-- == mal.link.target == -->
 <xsl:template name="mal.link.target">
   <xsl:param name="link" select="."/>
+  <xsl:param name="action" select="$link/@action"/>
   <xsl:param name="xref" select="$link/@xref"/>
   <xsl:param name="href" select="$link/@href"/>
   <xsl:choose>
+    <xsl:when test="starts-with($action, 'install:')">
+      <xsl:value-of select="$action"/>
+    </xsl:when>
     <xsl:when test="string($xref) = ''">
       <xsl:value-of select="$href"/>
     </xsl:when>



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