📄 getting the results.htm
字号:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb_2312-80">
<TITLE>使用一个新的DOM文档得到XSL转换的结果 </TITLE>
<style type="text/css">
<!--
.normal10 { font-size: 11pt}
.normal9 { font-size: 9pt}
a{ text-decoration: none }
a:hover{ color:Red;text-decoration:underline }
a {
font-size:11pt;
COLOR: cornflowerblue;
FONT-FAMILY: "新细明体", "宋体";
FONT-WEIGHT: bold
}
.normal105 { font-size: 11pt}
.p { font-size: 11pt}
-->
</style>
<link rel="stylesheet" href="../../Global.css" tppabs="http://www.xml.org.cn:8188/Global.css"></HEAD>
<BODY>
<p ALIGN="CENTER" class="normal105">[<a href="../../default.asp.htm" tppabs="http://www.xml.org.cn:8188/default.asp" target="_parent">返回首页</a>][<font face="宋体" lang="ZH-CN"><a href="../application.htm" tppabs="http://www.xml.org.cn:8188/application/application.htm" target="_parent">返回应用</a></font>]</p>
<table width="85%" border="0" align="center">
<tr>
<td width="8%" height="66"> </td>
<td width="76%" height="66">
<h2 align="center">使用一个新的DOM文档得到XSL转换的结果 <font face="宋体" lang="ZH-CN"> </font></h2>
</td>
<td width="16%" height="66"><a name="top"></a></td>
</tr>
<tr>
<td colspan="3" height="428">
<p><span class="normal105">上一篇:<a href="Using XSL in an Active Server Page.htm" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/Using%20XSL%20in%20an%20Active%20Server%20Page.htm" class="normal105">
在Asp中使用XSL</a> <br>
下一篇:<a href="Detecting and Handling XSL Errors.htm" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/Detecting%20and%20Handling%20XSL%20Errors.htm" class="normal105">侦测和处理XSL错误</a>
<br>
返 回: <a href="Using the XSL Processor.htm" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/Using%20the%20XSL%20Processor.htm" class="normal105"> 使用XSL处理程序
</a></span></p>
<p><span class="normal105"><font face="宋体"><b>transformNodeToObject</b>
方法提供了一个办法来生成一个新的DOM文档来代替XML文本. 在这个例子中,数据岛被用于加载XMl原文档和Xsl样式表,并且一个空的数据岛将被用于保留转换的结果.</font></span></p>
<pre class=clsCode><span class="normal105"><font face="Arial" class="normal105"><HTML>
<SCRIPT FOR="window" EVENT="onload">
data.transformNodeToObject(ss.XMLDocument, resultTree.XMLDocument);
</SCRIPT>
<XML id="data" src="portfolio.xml"></XML>
<XML id="ss" src="portfolio.xsl"></XML>
<XML id="resultTree"></XML>
</HTML></font></span></pre>
<p><span class="normal105"><font face="宋体">和 <b>transformNode</b> 方法一样,
<b>transformNodeToObject</b> 方法也是被应用于原树中的一个节点,以及以DOM树的形式接收一个样式表.第二个参数包含了另一个用于保存转换结果的DOM文档节点.</font></span></p>
<p><span class="normal105"><font face="宋体">在转换期间设置在输出XMl DOM 文档上的属性会被遵守,例如<b>validateOnParse</b>
和 <b>async.</b>DOM文当中任何以前的子孙节点都会在转换过程中被删除</font></span></p>
<p><span class="normal105"><font face="宋体"><b>尝试!</b> 上面的代码是 <a
href="../../../msdn.microsoft.com/xml/samples/transform-viewer/transform-viewer.htm" tppabs="http://msdn.microsoft.com/xml/samples/transform-viewer/transform-viewer.htm">Transformation
Viewer</a> 例子的简化.</font></span></p>
<p><span class="normal105"><font face="宋体"><a
href="../../../msdn.microsoft.com/xml/samples/transform-viewer/transform-viewer.zip" tppabs="http://msdn.microsoft.com/xml/samples/transform-viewer/transform-viewer.zip"><img
alt=Download border=0 height=20
src="Getting the Results of an XSL Transformation as a New DOM Document.files/icodownl.gif" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/Getting%20the%20Results%20of%20an%20XSL%20Transformation%20as%20a%20New%20DOM%20Document.files/icodownl.gif"
width=16> Download this sample</a>. </font></span></p>
<p class="normal10"> </p>
</td>
</tr>
<tr>
<td colspan="3" height="2"><font face="宋体" lang="ZH-CN" size=3> </font> <rev></rev><font face="宋体" lang="ZH-CN" size=3></font>
<hr size="1">
<p align="center"><font face="宋体" lang="ZH-CN">[<a href="#top">返回标题</a>][<a href="../application.htm" tppabs="http://www.xml.org.cn:8188/application/application.htm" target="_parent">返回应用</a>][<a href="../../default.asp.htm" tppabs="http://www.xml.org.cn:8188/default.asp" target="_parent">返回首页</a>][<a href="mailto:xmlteam@egroups.com">欢迎投稿</a>]</font></p>
<p align="center">最后更新:1999年9月15日<br>
<font color="#FF0033" size="-1">本站点所刊文章版权,均归本站点所有。署名作者拥有其著作权。<br>
未经</font><font color="#FF0033"><a href="mailto:xmlteam@egroups.com"><font color="#6666FF" size="-1">允许</font></a></font><font color="#FF0033" size="-1">,不得随意转载,违者必究!!</font>
</p>
</td>
</tr>
</table>
<h2 ALIGN="CENTER"> </h2>
<FONT FACE="宋体" LANG="ZH-CN" SIZE=3>
<P ALIGN="JUSTIFY"> </P>
</FONT><FONT FACE="宋体" LANG="ZH-CN" SIZE=3></FONT>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -