Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent apostrophe escaping

Status
Not open for further replies.

MikeAJ

Programmer
May 22, 2002
108
US
Hi, I'm having trouble with XSL escaping. I'm building a link which is a call to a popup function, but the apostrophe is escaping, so it doesn't work in IE. I tried adding <xsl:text disable-output-escaping="yes">, but that didn't seem to work. Here is what I've tried:

Code:
<a>
<xsl:attribute name="href">
	<xsl:text disable-output-escaping="yes">javascript:popup('</xsl:text><xsl:value-of select="@miniModelUrl"/><xsl:text disable-output-escaping="yes">'</xsl:text>);
</xsl:attribute><xsl:value-of select="@displayName"/>
</a>
and here is what I get
Code:
<a href="javascript:popup(&apos;/model/2005/3254&apos;);">CBX-65</a>

Does anyone see what I'm doing wrong?

Thanks,
Mike
 
How do you produce such output? Can you deeply reduce your data to make a bare minimum demo showing the outcome like you described? I cannot hook up something to reproduce the phenomenon.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top