xsl初学者的困扰:怎样用xsl在ie中显示xml文件中的hello world
我的代码:
hello.xml
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="hello.xsl"?>
<greeting>Hello, world!</greeting>
hello.xsl
<?xml version="1.0" encoding="UTF-8" ?>
<stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title>First XSLT example</title>
</head>
<body>
<p>
<xsl:value-of select="greeting" />
</p>
</body>
</html>
</xsl:template>
</stylesheet>
我在ie中打开hello.xml怎么不对呢?
请高手不吝赐教!