from MSDN:<HTML>
<HEAD>
<TITLE>Simple demo of Microsoft XSL Processor</TITLE>
</HEAD> <XML id="source" src="simple.xml"></XML>
<XML id="style" src="simple.xsl"></XML>
<SCRIPT FOR="window" EVENT="onload">
xslTarget.innerHTML = source.transformNode(style.XMLDocument);
</SCRIPT> <BODY>
<P STYLE="font-size:10pt; font-family:Verdana; color:gray">
<B>This demo shows the use of data islands for loading XML source and
XSL style sheets and inserting the transformed result into the Web page.</B>
</P>
<DIV id="xslTarget"></DIV>
</BODY>
</HTML>
<HEAD>
<TITLE>Simple demo of Microsoft XSL Processor</TITLE>
</HEAD> <XML id="source" src="simple.xml"></XML>
<XML id="style" src="simple.xsl"></XML>
<SCRIPT FOR="window" EVENT="onload">
xslTarget.innerHTML = source.transformNode(style.XMLDocument);
</SCRIPT> <BODY>
<P STYLE="font-size:10pt; font-family:Verdana; color:gray">
<B>This demo shows the use of data islands for loading XML source and
XSL style sheets and inserting the transformed result into the Web page.</B>
</P>
<DIV id="xslTarget"></DIV>
</BODY>
</HTML>
http://lucky.myrice.com/xml/xpathexam2.htm
打不开
B.innerHTML='<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">...'之类的脚本定义数据岛吗?
<HEAD>
<TITLE>Simple demo of Microsoft XSL Processor</TITLE>
</HEAD> <XML id="source" src="simple.xml"></XML>
<XML id="style"></XML>
<script>
style.async = false;
style.loadXML("<?xml version=\"1.0\" encoding=\"GB2312\"?><xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/TR/WD-xsl\"><xsl:template match=\"/\"><xsl:value-of select=\"Topic/Issue/TopicName\"/></xsl:template></xsl:stylesheet>");
</script>
<SCRIPT FOR="window" EVENT="onload">
xslTarget.innerHTML = source.transformNode(style.XMLDocument);
</SCRIPT> <BODY>
<P STYLE="font-size:10pt; font-family:Verdana; color:gray">
<B>This demo shows the use of data islands for loading XML source and
XSL style sheets and inserting the transformed result into the Web page.</B>
</P>
<DIV id="xslTarget"></DIV>
</BODY>
</HTML>simple.xml
-------------
<?xml version="1.0" encoding="GB2312"?>
<Topic>
<Issue>
<TopicName>帖子标题</TopicName>
</Issue>
</Topic>