xsl-list
[Top] [All Lists]

RE: [xsl] special characters in XSL

2009-12-17 04:21:41

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(_dot_)v(_at_)frescoinformatics(_dot_)com] 
Sent: 17 December 2009 08:08
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>