案例:XSL案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
4
<script type="text/javascript">
5
// Load XML 
6
var xml = new ActiveXObject("Microsoft.XMLDOM")
7
xml.async = false
8
xml.load("/example/xmle/cd_catalog.xml")
9
10
// Load the XSL
11
var xsl = new ActiveXObject("Microsoft.XMLDOM")
12
xsl.async = false
13
xsl.load("/example/xmle/cd_catalog.xsl")
14
15
// Transform
16
document.write(xml.transformNode(xsl))
17
</script>
18
19
</body>
20
</html>
21