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

RE: special characters in XSL

Subject: RE: special characters in XSL
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 17 Dec 2009 09:21:16 -0000
RE:  special characters in  XSL
If you are using output method=html, and the Javascript is inside a <script>
element, then the < should not be escaped. Either (a) it's not in a script
element, or (b) your XSLT processor is getting it wrong (which is not


Michael Kay

> -----Original Message-----
> From: Anil Kumar Veeramalli [mailto:anil.v@xxxxxxxxxxxxxxxxxxxxx] 
> Sent: 17 December 2009 08:08
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  special characters in XSL
> Hi,
> I am using XSL 1.0 version of XSL. my output type is HTML.
> <![CDATA[for (var i=0;i<12;i++ ){
>                         if(aMonths[i] == mon.toUpperCase()){
>                             return i;
>                         }
>                     }
>  ]]>
> my output is showing as    for (var i=0;i&lt;12;i++ ){.
> '<' symbol is  replaced with  '&lt', so for loop in 
> JavaScript is not executing.
> Please help me on this.
> Thanks,
> Anil

Current Thread


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.
First Name
Last Name
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.