XSL样式表里如何使用外部JS?
---xml文件-----
<?xml version="1.0" encoding="GB2312"?>
<?xml:stylesheet type="text/xsl" href="WriterList.xsl"?>
...
---xsl文件 WriterList.xsl-----
<?xml version="1.0" encoding="GB2312" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<link rel="stylesheet" href="css\style.css" type='text/css' />
<title>xxx</title>
</head>
<body>
<script language="JavaScript" src="Script/User.js" type="text/javascript"></script>
</body>
</xsl:template>
</xsl:stylesheet>
其中<script language="JavaScript" src="Script/User.js" type="text/javascript"></script> 里的User.Js是用document.write输出一些内容
但是查看这个xml 文件时,js输出内容为乱码。。。。。如何解决?