John,
Try this:
<xsl:variable name="id"><xsl:apply-templates mode="getDivId" select="info"
/></xsl:variable>
<a href="#" onMouseOver="simpleMouseOver('{$id}')">
If you get unwanted space in the id variable you can change the second line
to:
<a href="#" onMouseOver="simpleMouseOver('{normalize-space($id)}')">
Regards,
Antony
-----Original Message-----
From: John Ollier [mailto:[EMAIL PROTECTED]
Sent: 19 November 2002 11:55
To: [EMAIL PROTECTED]
Subject: can't disable output escaping
Hello all
I want to get this into my output document:
<a onMouseOver=" simpleMouseOver( ' id_a ' ) " >
I thought I could do it like this:
<a>
<xsl:attribute name="href">#</xsl:attribute>
<xsl:attribute name="onMouseOver"> simpleMouseOver
<xsl:text disable-output-escaping="yes">( ' </xsl:text>
<xsl:apply-templates mode="getDivId" select="info" />
<xsl:text disable-output-escaping="yes"> ') </xsl:text>
</xsl:attribute>
.....
But what I get is:
<a href="#" onMouseOver="simpleMouseOver ( ' id_a ' )
......
Any idea what I'm doing wrong?
Thanks in advance.
John