[yelp-xsl] mal2html-media.xsl: Support ubiquitous linking on media
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal2html-media.xsl: Support ubiquitous linking on media
- Date: Mon, 7 Mar 2011 22:01:53 +0000 (UTC)
commit 7efb3bbf0d3fc4e010cd71a572a6d0d9dec345d9
Author: Shaun McCance <shaunm gnome org>
Date: Mon Mar 7 17:04:52 2011 -0500
mal2html-media.xsl: Support ubiquitous linking on media
xslt/mallard/html/mal2html-media.xsl | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-media.xsl b/xslt/mallard/html/mal2html-media.xsl
index ef1e1ba..b995fb9 100644
--- a/xslt/mallard/html/mal2html-media.xsl
+++ b/xslt/mallard/html/mal2html-media.xsl
@@ -352,6 +352,25 @@ FIXME
<!-- = mal2html.inline.mode % media = -->
<xsl:template mode="mal2html.inline.mode" match="mal:media">
<xsl:choose>
+ <xsl:when test="@action | @xref | @href">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="mal.link.target"/>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:call-template name="mal.link.tooltip"/>
+ </xsl:attribute>
+ <xsl:apply-templates mode="mal2html.inline.content.mode" select="."/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates mode="mal2html.inline.content.mode" select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template mode="mal2html.inline.content.mode" match="mal:media">
+ <xsl:choose>
<xsl:when test="@type = 'image'">
<span class="media media-image">
<xsl:call-template name="mal2html.media.image">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]