[yelp-xsl] mal2html-media: The type attribute should default to 'image'



commit 3199d114e5a6fc66ff2535f9361cd7f23a987188
Author: Shaun McCance <shaunm gnome org>
Date:   Thu Jul 7 22:20:40 2011 -0400

    mal2html-media: The type attribute should default to 'image'

 xslt/mallard/html/mal2html-media.xsl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-media.xsl b/xslt/mallard/html/mal2html-media.xsl
index a314a90..1100a50 100644
--- a/xslt/mallard/html/mal2html-media.xsl
+++ b/xslt/mallard/html/mal2html-media.xsl
@@ -313,7 +313,7 @@ FIXME
   </xsl:variable>
   <xsl:choose>
     <xsl:when test="$if != 'true'"/>
-    <xsl:when test="@type = 'image'">
+    <xsl:when test="@type = 'image' or not(@type)">
       <div>
         <xsl:attribute name="class">
           <xsl:text>media media-image</xsl:text>
@@ -376,7 +376,7 @@ FIXME
 
 <xsl:template mode="mal2html.inline.content.mode" match="mal:media">
   <xsl:choose>
-    <xsl:when test="@type = 'image'">
+    <xsl:when test="@type = 'image' or not(@type)">
       <span class="media media-image">
         <xsl:call-template name="mal2html.media.image">
           <xsl:with-param name="inline" select="true()"/>



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