Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Embedding Javascript within XSL file [Thread Next] Re: Embedding Javascript within XSL fileTo: NULL Date: 5/3/2004 3:17:00 PM
msnews.microsoft.com wrote:
> My latest problem is embedding javascript code within the XSL stylesheet
> file. I am having an error for the following piece of code.
>
> for (i=0;i<alltags.length;i++){
> --------------------------^
Use a CDATA section to wrap the script so that it doesn't break XML
well-formedness rules and output method html
<script type="text/javascript"><![CDATA[
for (var i = 0; i < alltags.length; i++)
...
]]></script>
--
Martin Honnen
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
