Subject: RE: special characters in XSL
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 17 Dec 2009 09:21:16 -0000
|
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
uncommon).
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
> -----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<12;i++ ){.
> '<' symbol is replaced with '<', so for loop in
> JavaScript is not executing.
>
> Please help me on this.
>
>
> Thanks,
> Anil
|