IE Doesn't Display

Post Reply
dorban
Posts: 31
Joined: Fri Sep 24, 2004 12:39 pm

IE Doesn't Display

Post by dorban »

Thought everything was working fine until I tested in IE 6. When I run a search using a custom XSL sheet, it returns a blank page. If I view source, I can see the xsl code but there are no errors or anything to help me debug.

Any ideas?

Thanks,
D.
dorban
Posts: 31
Joined: Fri Sep 24, 2004 12:39 pm

IE Doesn't Display

Post by dorban »

It looks like IE doesn't like something in the fix for my last issue...

<xsl:param name="text" select="Url"/>
<xsl:param name="delim" select="'&#35;'"/>
<xsl:choose>
<xsl:when test="contains($text,$delim)">
URL: <xsl:value-of select="substring-before($text,$delim)"/>
</xsl:when>
<xsl:otherwise>
URL: <xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>

If I remove the code above, the rest of the page works. Even if I leave in only...

<xsl:param name="text" select="Url"/>
<xsl:param name="delim" select="'&#35;'"/>

It doesn't display. From what I've read, the above is standard XSL that MS should support though...
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

IE Doesn't Display

Post by jason112 »

Do you mean to use <xsl:variable> rather than <xsl:param>?
I don't think it's proper to use <xsl:param> in that context.

You could also try my version which doesn't use any extra params/variables:

<xsl:choose>
<xsl:when test="contains(Url,'#')">
<xsl:value-of select="substring-before(Url, '#')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="Url"/>
</xsl:otherwise>
</xsl:choose>
dorban
Posts: 31
Joined: Fri Sep 24, 2004 12:39 pm

IE Doesn't Display

Post by dorban »

Thanks, I ended up doing the same thing as your last example. The only difference is that I had to use '&#35;' in place of '#' or it would error...

I've been searching for more info on XSL files b/c I'm pretty new to it. I appreciate the help.
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

IE Doesn't Display

Post by jason112 »

Post Reply