在XSL中使用Javascipt时使用逻辑判断符>时,应该用什么来转义呢?

在XSL的Javascipt中使用逻辑判断符>时,应该用什么来转义呢?
---------------------------------------------------------------

将JS文件嵌入XSL中即可:

1<script charset="gb2312" language="JavaScript" src="code.js" type="text/javascript"></script>

演示请看:
http://xmlnews.sameliking.com/iisexample/data/xmlnews/xml/20021129081448.xml
(在左边的“More articles”一栏中,调用了JS文件显示精品文章。)

http://xmlnews.sameliking.com/iisexample/data/xmlnews/default.htm

---------------------------------------------------------------

1<script>   
2<![CDATA[   
3  
4if(2<90) alert("ok")   
5]]>   
6</script>

---------------------------------------------------------------

樓上的也可以..加上CDATA.解析器就不會去認非法字符了

Published At
Categories with Web编程
Tagged with
comments powered by Disqus