有关xml和xslt转换时html标签处理求助
我希望转换后html标签有效,可是,唉......
**********************
tmp.xml文件:
<?xml version="1.0" encoding="GB2312"?>
<?xml-stylesheet type='text/xsl' href='tmp.xsl'?>
<root>
<title>题目</title>
<content><![CDATA[<font size=4 color=blue>这是蓝色汉字</font><br><input type=button value="这是一个按钮">]]></content>
</root>
***********************
***********************
tmp.xsl
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="text()" >
<xsl:value-of/>
</xsl:template>
<xsl:template match="/">
<xsl:apply-templates select="root"/>
</xsl:template>
<xsl:template match="/root">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312"/><title><xsl:value-of select="title"/></title>
</head>
<body>
<xsl:value-of select="content"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
***********************
我从IE5.0中看到的效果是
<font size=4 color=blue>这是蓝色汉字</font><br><input type=button value="这是一个按钮">
问题出在样式转换时他竟然把我的数据文件中的尖括号转换成“$lt;”和“$gt;”。
请知情者予以帮助