From: SourceForge.net <no...@so...> - 2006-04-27 08:10:38
|
Patches item #439697, was opened at 2001-07-09 21:42 Message generated for change (Comment added) made by xmldoc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373749&aid=439697&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: None Status: Closed Resolution: Wont Fix Priority: 5 Submitted By: Archimedes Trajano (trajano) Assigned to: Michael(tm) Smith (xmldoc) Summary: XSLT for Media Object in IE5.5 Initial Comment: This is the MediaObject XSLT that I created for IE 5.5 it only supports PNG and images so far. <xsl:template match="mediaobject"> <xsl:choose> <xsl:when test="imageobject and imageobject/imagedata/@format = 'PNG' and not (textobject)"> <span> <xsl:attribute name="style">width:1px;height:1px;filter:progid:DXImage Transform.Microsoft.AlphaImageLoader(src='<xsl:value- of select="imageobject/imagedata/@fileref" />');</xsl:attr ibute> <img> <xsl:attribute name="src"><xsl:value-of select="imageobject/imagedata/@fileref" /></xsl:attribu te> <xsl:attribute name="alt"><xsl:value-of select="imageobject/imagedata/@fileref" /></xsl:attribu te> <xsl:attribute name="style">filter:Alpha (opacity=0);</xsl:attribute> </img> </span> </xsl:when> <xsl:when test="imageobject and imageobject/imagedata/@format = 'PNG' and textobject"> <span> <xsl:attribute name="style">width:1px;height:1px;filter:progid:DXImage Transform.Microsoft.AlphaImageLoader(src='<xsl:value- of select="imageobject/imagedata/@fileref" />');</xsl:attr ibute> <img> <xsl:attribute name="src"><xsl:value-of select="imageobject/imagedata/@fileref" /></xsl:attribu te> <xsl:attribute name="alt"><xsl:value-of select="textobject/phrase" /></xsl:attribute> <xsl:attribute name="style">filter:Alpha (opacity=0);</xsl:attribute> </img> </span> </xsl:when> <xsl:when test="imageobject and not(textobject)"> <img> <xsl:attribute name="src"><xsl:value-of select="imageobject/imagedata/@fileref" /></xsl:attribu te> <xsl:attribute name="alt"><xsl:value-of select="imageobject/imagedata/@fileref" /></xsl:attribu te> </img> </xsl:when> <xsl:when test="imageobject and textobject"> <img> <xsl:attribute name="src"><xsl:value-of select="imageobject/imagedata/@fileref" /></xsl:attribu te> <xsl:attribute name="alt"><xsl:value-of select="textobject/phrase" /></xsl:attribute> </img> </xsl:when> </xsl:choose> </xsl:template> ---------------------------------------------------------------------- >Comment By: Michael(tm) Smith (xmldoc) Date: 2006-04-27 17:10 Message: Logged In: YES user_id=118135 The DocBook XSL stylesheets don't attempt to support IE 5.5 ---------------------------------------------------------------------- Comment By: Michael(tm) Smith (xmldoc) Date: 2006-04-27 17:10 Message: Logged In: YES user_id=118135 The DocBook XSL stylesheets don't attempt to support IE 5.5 ---------------------------------------------------------------------- Comment By: Archimedes Trajano (trajano) Date: 2002-02-07 03:11 Message: Logged In: YES user_id=55322 This code block adds support for rendering PNG files in IE 5.5. IE 5.5 does not support PNG files with the IMG tag properly (i.e., does not support alpha transperency only mask based transparency) however they have a PNG filter that does support it properly and this code uses it if PNG is specified. ---------------------------------------------------------------------- Comment By: Norman Walsh (nwalsh) Date: 2001-12-02 04:45 Message: Logged In: YES user_id=81663 What does this code do? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373749&aid=439697&group_id=21935 |