xsl-list
[Top] [All Lists]

Re: url query works with mozilla; not IE

2003-07-02 05:21:22
From: "William S." <wstan(_at_)xs4all(_dot_)nl>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list <XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: [xsl] url query works with mozilla; not IE
Date: Wed, 2 Jul 2003 13:19:22 +0200

I am trying to pass a url query in Internet Explorer but it
cuts off the last part.

Instead of getting:
display.php?image=999.png

I am getting:
display.php?image=

This is what I am using. It works OK in Mozilla, but
fails in Internet Explorer.

<img>
<xsl:attribute name="src">display.php?image=<xsl:value-of select="$myvar"/></xsl:attribute>
<xsl:attribute name="text">foo</xsl:attribute>
<xsl:attribute name="alt">foo</xsl:attribute>
</img>

(Note: $myvar=999.png)

If I simply do it as directly below, it works in _both_
IE and Mozilla.

<img>
<xsl:attribute name="src">display.php?image=999.png</xsl:attribute>
<xsl:attribute name="text">foo</xsl:attribute>
<xsl:attribute name="alt">foo</xsl:attribute>
</img>

How can I fix this so it works in all(most) browsers?

--
Bill
Amsterdam, NL

Couldbe due to whitespace. Why not try:
<img text="foo" alt="foo" src="display.php?image={$myvar}"></img>

--

Joe

_________________________________________________________________
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list