Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • kukuwka 75 posts 96 karma points
    Dec 13, 2010 @ 12:24
    kukuwka
    0

    Internet Explorer cannot display the webpage

    Hi,

    I use in my xslt list of products with images.

    If I use this code in list:

    <img alt='{@nodeName}' src="/images/default.png">
                   <xsl:attribute name="class">
                        <xsl:choose>
                         <xsl:when test="string-length(./data[@alias='MainImage']) &gt; 0">
                            <xsl:variable name="currentMedia" select="umbraco.library:GetMedia(./data[@alias='MainImage'], false)"/>
                            <xsl:choose>
                              <xsl:when test="string-length($currentMedia/data[@alias='ImageThumbs']/crops/crop[@name='Main']/@url) &gt; 0">
             src[<xsl:value-of select="$currentMedia/data[@alias='ImageThumbs']/crops/crop[@name='Main']/@url"/>]
                              </xsl:when>
                              <xsl:otherwise>
             src[/umbraco/ImageGen.ashx?image=<xsl:value-of select="$currentMedia/data[@alias='umbracoFile']"/>&amp;width=90&amp;height=80]
            </xsl:otherwise>
                            </xsl:choose>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:choose>
                              <xsl:when test="@nodeTypeAlias='Product'">
             src[/images/product.jpg]
            </xsl:when>
                              <xsl:otherwise>
             src[/images/default.png]
            </xsl:otherwise>
                            </xsl:choose>
                         </xsl:otherwise>
                        </xsl:choose>
                      </xsl:attribute>
                    </img>

    I get:

    Internet Explorer cannot display the webpage.

    If I remove it, everithing works fine.

    What I do wrong in this code that affects on this error?

    Thanks,

    kukuwka

Please Sign in or register to post replies

Write your reply to:

Draft