stefano wrote:
<xsl:template match="test">
<span>
<xsl:attribute name="class"> test </xsl:attribute>
<span>
<a>
<xsl:attribute name="name"><xsl:value-of
select="@label"/></xsl:attribute>
</a>
</span>
<xsl:call-template name="title"/>
<form>
<xsl:apply-templates/>
</form>
</span>
</xsl:template>
<input type= "button" class="but" value="verifica"
onclick="verify(this);" />
In firefox all is ok, while in IE the second alert print "a".
It is hard to tell exactly what goes wrong without seeing a complete
test case isolating the problem but for a start consider having the form
element inside of a div and not of a span. It might be that IE's HTML
parser tries to fix your HTML generated by the stylesheet. That is kind
of a guess to what could be one cause to the oddity you see.
--
Martin Honnen
http://JavaScript.FAQTs.com/