javascript 难?
<!--xsl code--><?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www. language="JavaScript">
<xsl:template match="/">
<xsl:script language="javascript" implements-prefix="user">
<![CDATA[
function dao(){
alert("wang");
a="xianping";
return a;
}
]]>
</xsl:script>
<html>
<head>
<title></title>
</head>
<body>
<xsl:apply-templates select="tree"/>
</body>
</html>
</xsl:template>
<xsl:template match="tree">
<xsl:value-of select="name"/>
</xsl:template>
</xsl:stylesheet>
<!--xml code-->
<?xml version="1.0" encoding="gb2312" ?>
<?xml:stylesheet href="C:\Documents and Settings\wangxianping\桌面\tree1.xsl" type="text/xsl" ?>
<tree>
<name>王贤平</name>
</tree>
script 中的代码无法运行,alert("wang")的值无法输出,a无法返回.请教高手,应怎样做?