|
Subject: [xsl] Problem with images / output method From: António Mota <xptm@xxxxxxx> Date: Tue, 28 Dec 2004 16:54:44 +0000 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] xsl:with-param and import, Michael Kay | Thread | Re: [xsl] Problem with images / out, Daniel Bibbens |
| [xsl] xsl:with-param and imports?, Bruce D'Arcus | Date | Re: [xsl] Determine file extension , John |
| Month |