Is the image deployed to /default/main/Lang/Country/Vendor/WORKAREA/Offshore_Content/sites/Company/logo.gif If not what is the path for your logo.gif?The path before that is preview through a proxy that lets you access the information directly. $URL_PREFIX is setting the correct path for it and it will reflect the actual site at runtime.
Hi All,I am trying to create one image component,I have written Appearance XML and XSL {Datum ID="D02" Name="BusinessImage" Type="Image"> {Image Width="200" Height="100"} {Path}$URL_PREFIX/sites/Company/logo.gif{/Path} {Description}Shop Now{/Description} {/Image} {/Datum} ==============================================={div} {xsl:variable name="imagePath"} {xsl:value-of select="/Properties/Data/Datum@Name='BusinessImage']/Image/Path" /} {/xsl:variable} {xsl:variable name="ImagePath" select="$imagePath" /} {img alt="image not found" width="200" height="100"} {attribute name="src"} {xsl:value-of select="$ImagePath" /} {/attribute} {/img} {/div} And when I am previewing the component it's not showing the image. Instead it is providing the path as follows /iw/cci/meta/no-injection/iw-mount/default/main/Lang/Country/Vendor/WORKAREA/Offshore_Content/sites/Company/logo.gif Can anyone tell what I am doing wrong?Any help is most appreciated.-- biman --
If your code is exactly the way use are using it, I think you're missing this "[" in this line:[html][/html]
<src img="/iw/cci/meta/no-injection/iw-mount/default/main/Lang/Country/Vendor/WORKAREA/Offshore_Content/sites/Company/logo.gif " />
$imagePath
Biman,Could it be that linewraps are appearing in your resulting HTML? I've seen that happen before with XSL similar to yours, where the output looks like: <src img="/iw/cci/meta/no-injection/iw-mount/default/main/Lang/Country/Vendor/WORKAREA/Offshore_Content/sites/Company/logo.gif " /> In such cases, the URL looks right, but those line wraps or whitespace can cause the browser to not display the image. If so, then you might change the way you're defining the $imagePath variable to fix it. Just an idea.Stokes.
<attribute>
xsl:
<img alt="image not found" width="200" height="100"> <attribute name="src"> <xsl:value-of select="$ImagePath" /> </attribute></img>
<img alt="image not found" width="200" height="100"> <xsl:attribute name="src"><xsl:value-of select="$ImagePath" /></xsl:attribute></img>