dorban
Posts: 31 Joined: Fri Sep 24, 2004 12:39 pm
Post
by dorban » Thu Jul 31, 2008 11:57 am
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
Post
by dorban » Thu Jul 31, 2008 12:28 pm
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="'#'"/>
<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="'#'"/>
It doesn't display. From what I've read, the above is standard XSL that MS should support though...
jason112
Site Admin
Posts: 347 Joined: Tue Oct 26, 2004 5:35 pm
Post
by jason112 » Thu Jul 31, 2008 12:47 pm
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
Post
by dorban » Mon Aug 04, 2008 12:20 pm
Thanks, I ended up doing the same thing as your last example. The only difference is that I had to use '#' 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.