
May 6th, 2011, 07:54 AM
|
|
|
|
How to output quotes?
Hi all
I can't figure out (and I've searched) how to use quotes in XSL within values. For example:
The following outputs a link that, when clicked, does a JS alert. But I need to wrap the contents of the alert in quotes, as it's a string. I've tried escaping ala other languages, i.e. with the backslash, and also using the quote entity ". No joy. Where am I going wrong?
Code:
<a><xsl:attribute name='href'><xsl:value-of select="concat('javascript:alert(TOYS:\n\n',count(toys/toy),');')" /></xsl:attribute>details</a>
Thanks in advance for any help
Last edited by mitya : May 6th, 2011 at 09:07 AM.
|