[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problem with images / output method

Subject: Problem with images / output method
From: António Mota <xptm@xxxxxxx>
Date: Tue, 28 Dec 2004 16:54:44 +0000
img onclick ie problem
Hi all, hope you have a great christmas...

I'm strugling with this problem for days now, and i'm not sure if this is
related to this list, but indulge me...

I have this in a XSLT

	<xsl:template name="dmenu">
		<xsl:param name="action" />
		<xsl:variable name="icon">
			<xsl:choose>
				<xsl:when test="not(menu) or menu[display=0]">
					<xsl:text>folderclosed.gif</xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>folderopen.gif</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
			<object data="{$icon}"  type="image/gif" border="0"
onclick="javascript:{$action}">+</object>
                        <img src="{$icon}" onclick="javascript:{$action}" />
		<a class="link" href="javascript:alert('{caption}')">
			<xsl:value-of select="caption" />
		</a>
	</xsl:template>

(the img and object are redundant, it's just tests)

I have defined my output as 'html' and everithing was working OK until this
piece of XSLT. Now, it works OK in FF but not on IE...

If i put my output as 'xml' it's the other way around, it works on IE but not
on
FF.

I'm using sarissa on both browsers. I've tryed everything i can think of,
including using xsl:element and xsl:attribute...

I cross posted this on xsl-list and on sarissa site, so forgime the
rudeness...




O SAPO ja esta livre de vmrus com a Panda Software, fique vocj tambim!
Clique em: http://antivirus.sapo.pt

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.