diff options
author | Shaun McCance <shaunm@gnome.org> | 2011-07-31 13:57:28 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2011-07-31 13:57:56 -0400 |
commit | bbf692f648b9d81db344c9389d09889da4d05cb0 (patch) | |
tree | 127619bcb2c620817cdd536781ee7558f1f3dde5 /data | |
parent | c0ba41628bc56e0e1214fd404ebc01fb93f9c496 (diff) | |
download | yelp-bbf692f648b9d81db344c9389d09889da4d05cb0.tar.gz |
mal2html.xsl: Support the install action scheme
Diffstat (limited to 'data')
-rw-r--r-- | 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 2272c4a1..8b9238c1 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> |