|
Subject: Re: [xsl] The old problem of Javascript, XSL and ampersand... From: ben senior <ben@xxxxxxxxxxxxx> Date: Tue, 25 Jan 2005 11:37:40 +0100 |
ImageSelector =
{
update : function(params)
{
if(this.field && this.field.value != null)
{
this.field.value = params.f_file; //params.f_url
}
},Ben, <xsl:text disable-output-escaping="yes"> <![CDATA[ if(this.field && this.field.value != null)
]]>
Should help you HTH Vasu
----- Original Message ----- From: "ben senior" <ben@xxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, January 25, 2005 10:21 AM Subject: [xsl] The old problem of Javascript, XSL and ampersand...
> As far as I can tell from the lists, there is no way to get an XSL > sheet to output valid javascript, the <>& chars are converted to > & etc... > > e.g. if(this.field && this.field.value != null) becomes > if(this.field & & this.field.value != null) which is > invalid JScript. > > However, I didn't get any exact matches on the list for this > problem. So that the list contains a definitive and discoverable > answer, can somebody confirm whether or not it is possible to get > an XSL template to emit unescaped characters like "&". > > Many thanks, > > Ben
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] The old problem of Javasc, Vasu Chakkera | Thread | Re: [xsl] The old problem of Javasc, Vasu Chakkera |
| Re: [xsl] The old problem of Javasc, Julian Reschke | Date | Re: [xsl] The old problem of Javasc, Vasu Chakkera |
| Month |