[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: The old problem of Javascript, XSL and ampersand..

Subject: Re: The old problem of Javascript, XSL and ampersand...
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Tue, 25 Jan 2005 10:26:45 -0000
escaping ampersand xsl
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:  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 &amp; etc...
> 
> e.g.        if(this.field && this.field.value != null)  becomes 
> if(this.field &amp; &amp; 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.