以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XSL/XSLT/XSL-FO/CSS 』  (http://bbs.xml.org.cn/list.asp?boardid=8)
----  如何用xsl显示html格式的数据?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=7113)


--  作者:血痕
--  发布时间:4/29/2004 9:54:00 AM

--  如何用xsl显示html格式的数据?
<?xml version="1.0" encoding="gb2312"?>
<?xml-stylesheet type="text/xsl" href="1.xsl"?>
<root>
 <text>
                            <![CDATA[      <h1>test</h1>   ]]>
                </text>
</root>
如何用1.xsl把text节点中的内容以html格式显示?
如果用<xsl:value-of select="root/text"/>显示的是<h1>test</h1>
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms