📄 day1_2.html
字号:
<html><!-- #BeginTemplate "/Templates/design.dwt" --><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Sohu</title>
<style>
.big {font-family: Arial, Helvetica, 宋体; font-size: 13pt; font-weight: bold}
.cur {font-family: 宋体; font-size: 9pt; color: #ff0000}
.chn {font-family: 宋体; font-size: 9pt}
.dir {font-family: 宋体; font-size: 11pt; font-weight: bold}
.sub {font-family: 宋体; font-size: 9pt}
.hdr {font-family: 宋体; font-size: 11pt; font-weight: bold}
.itm {font-family: 宋体; font-size: 9pt}
.eng {font-family: Arial, Helvetica, 宋体; font-size: 9pt}
a.hover {color: red}
</style>
<meta http-equiv="pragma" content="no-cache">
</head>
<body bgcolor="#ffffff" link="#000099" alink="#cc0000" vlink="#000099" topmargin=8>
<center>
<!-- Top banner and channel bar (for all pages) --> <!-- #BeginLibraryItem "/Library/header.lbi" -->
<table border=0 cellpadding=0 cellspacing=0 width=700>
<tr>
<td width="161"> <a href="http://www.sohu.com"><img src="http://www.sohu.com/new_sohu/images/soh1.GIF" width="97" height="45" border="0"></a><a href="http://it.sohu.com/"><img src="../../Library/it1.gif" width="29" height="45" border="0"></a>
</td>
<td width="67"><img src="http://it.sohu.com/foxit.gif" width="100" height="60"></td>
<td height=60 align="right" width=472> <!-- AdSpace Site=SOHU Channel=it --><!-- /AdSpace --></td>
</tr>
<tr>
<td colspan="2"><img src="http://www.sohu.com/new_sohu/images/pixel.gif" height=3></td>
</tr>
<tr bgcolor="#4f519c" >
<td background="http://www.sohu.com/new_sohu/it/images/channel_black_top.gif" height=24 colspan=3 align=center nowrap class=chn><a
href="http://www.sohu.com/" ><font color="#FFFFFF">首页</font></a> <font color="#FFFFFF">-
</font><a
href="http://news.sohu.com/"><font color="#FFFFFF">新闻</font></a><font color="#FFFFFF">
- </font><a
href="http://sports.sohu.com/"><font color="#FFFFFF">体育</font></a><font color="#FFFFFF">
- </font><a
href="http://business.sohu.com/"><font color="#FFFFFF">财经</font></a><font color="#FFFFFF">
- </font><a
href="http://dowjones.sohu.com/"><font color="#FFFFFF">道琼斯</font></a><font color="#FFFFFF">
- </font><a
href="http://auto.sohu.com/"><font color="#FFFFFF">汽车</font></a><font color="#FFFFFF">
- </font><a
href="http://realestate.sohu.com/"><font color="#FFFFFF">房地产</font></a><font color="#FFFFFF">
- </font><a
href="http://it.sohu.com/" class=cur><font color="#FFFF00">IT</font></a><font color="#FFFFFF">
- </font><a
href="http://games.sohu.com/"><font color="#FFFFFF">游戏</font></a><font color="#FFFFFF">
- </font><a
href="http://movie.sohu.com/"><font color="#FFFFFF">影视</font></a><font color="#FFFFFF">
- </font><a
href="http://music.sohu.com/"><font color="#FFFFFF">音乐</font></a><font color="#FFFFFF">
- </font><a
href="http://women.sohu.com"><font color="#FFFFFF">女人</font></a><font color="#FFFFFF">
- </font><a
href="http://travel.sohu.com/"><font color="#FFFFFF">旅游</font></a><font color="#FFFFFF">
- </font><a
href="http://learning.sohu.com/"><font color="#FFFFFF">求知</font></a><font color="#FFFFFF">
- </font><a
href="http://career.sohu.com/"><font color="#FFFFFF">求职</font></a><font color="#FFFFFF">
- </font><a
href="http://freemail.sohu.com/"><font color="#FFFFFF">邮件</font></a></td>
</tr>
</table>
<!-- #EndLibraryItem --><!-- Subchannel bar (contents are different for each channel) -->
<table border=0 cellpadding=0 cellspacing=0 width=700>
<tr bgcolor="#4f519c" >
<td height=24 colspan=3 align=center class=chn><a
href="http://it.sohu.com/it-domestic/index.html"><font color="#FFFFFF">IT新闻</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/webcourse/index.html"><font color="#FFFFFF">实用手册</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/webcourse/webmonkey/index.html"><font color="#FFFF00">网猴教程</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/quote/index.html"><font color="#FFFFFF">硬件行情</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/download/index.html"><font color="#FFFFFF">软件精品廊</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/mobile/index.html"><font color="#FFFFFF">手机时尚</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/netuse/index.html"><font color="#FFFFFF">网络倾情</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/News/news-hot.html"><font color="#FFFFFF">热点追踪</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/free/index.html"><font color="#FFFFFF">免费大全</font></a>
<font color="#FFFFFF">-</font> <a
href="http://it.sohu.com/bbs/index.html"><font color="#FFFFFF">IT论坛</font></a></td>
</tr>
<tr>
<td height="10"><img src="http://www.sohu.com/images/pixel.gif" height=5></td>
</tr>
</table>
<!-- Table surrounding page contents -->
<table border=0 cellpadding=0 cellspacing=0 width=700>
<tr> <!-- Headlines (column 1: left column) -->
<td width=132 valign=top> <!-- #BeginLibraryItem "/Library/left.lbi" --> <SCRIPT language=javascript type=text/javascript>
function Visit(form, i) {
var site = form.elements[i].selectedIndex;
if( site >= 1 ) {
top.location = form.elements[i].options[site].value;
}
form.elements[i].selectedIndex = 0;
}
</SCRIPT>
<table bordercolor=#336699 cellpadding=0 cellspacing=1
width="131" border=1>
<tr>
<td colspan=2 align=center height=20 class=hdr>
<div align="center">
<table width="100%" border="1" bordercolordark="#494E94" bordercolorlight="#A6A6FF" height="19">
<tr bgcolor="#494E94" align="center">
<td><font color="#FFFFFF">网猴教程</font></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2" height="8"><a href="../../1-html/index.html">-HTML</a></td>
</tr>
<tr>
<td colspan="2" height="8">-<font color="#000099"><a href="../../1-dreamweaver/index.html">Dreamweaver</a></font></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1firework/lessons/index.html">Fireworks</a></td>
</tr>
<tr>
<td colspan="2">-<font color="#000099"><a href="../../1-flash/index.html">Flash课程
</a></font></td>
</tr>
<tbody>
<tr>
<td colspan="2">-<font color="#000099"><a href="../../1-kids/index.html">网页制作</a></font></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1dynamic_html/index.html">动态HTML</a></td>
</tr>
<tr>
<td colspan="2">-<font color="#0000CC"><a href="../../1-photoshop/index.html">Photoshop</a></font></td>
</tr>
<tr>
<td colspan="2" height="3">-<font color="#000099"><a href="../../1-javascript/index.html">Javescript</a></font></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-java/index.html">Java天地</a></td>
</tr>
<tr>
<td colspan="2">-<font color="#0000CC"><a href="../../1-cool3d/add.html">动画制作</a></font></td>
</tr>
<tr>
<td colspan="2">-<font color="#000099"><a href="../../1-design/index.html">网站设计</a></font></td>
</tr>
<tr>
<td colspan="2">-<a href="../index.html">XML教程</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1Web101/index.html">WEB入门</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-stylesheets/index.html">样式表教程</a> </td>
</tr>
<tr>
<td colspan="2"><a href="../../1-backend/index.html">-Backend</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-graphics/index.html">图形与字体</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1multimedia/index.html">多媒体教程</a></td>
</tr>
<tr>
<td colspan="2"><a href="../../1-os/index.html">-操作系统</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-e_business/index.html">电子商务</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-director/index.html">Director</a> </td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#666699"><a href="../../1-download/index.htm"><font color="#FFFFFF">网猴下载</font></a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-download/page1.htm">网页制作</a></td>
</tr>
<tr>
<td colspan="2">-<font color="#000000"><a href="../../1-download/page2.htm">程序设计</a></font></td>
</tr>
<tr>
<td colspan="2">-<font color="#000000"><a href="../../1-download/page3.htm">网站设计</a></font></td>
</tr>
<tr>
<td colspan="2">-<font color="#000000"><a href="../../1-download/page4.htm">电子商务</a></font>
</td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#666699"><a href="../../1-teach/index.htm"><font color="#FFFFFF">实用技巧</font></a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/internet/index.htm">Internet应用</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/photoshop/index.html">Photoshop</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/flash/page1.html">Flash</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/asp/index.html">ASP</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/php/index.html">PHP</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/java/index.htm">Java</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/vb/index.htm">VB</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/c/index.htm">C、C++</a></td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-backend/database/php_mysql/index.html">PHP/MySQL</a></td>
</tr>
<tr>
<td colspan="2"><a href="../../1-backend/cgi_perl/perl_beginner/index.html">-Perl</a>
</td>
</tr>
<tr>
<td colspan="2">-<a href="../../1-teach/other/index.htm">其它</a> </td>
</tr>
<tr>
<td colspan="2" bgcolor="#666699">
<div align="center"><font color="#FFFFFF">更多教程</font></div>
</td>
</tr>
<tr>
<td colspan="2" height="17"><a href="../../1hdml/index.html">-HDML</a></td>
</tr>
<tr>
<td colspan="2" height="23"><font face="宋体"><a href="../../1-backend/database/course/day1_1.html">-网络数据库</a></font></td>
</tr>
<tr>
<td colspan="2" height="14"><a href="../../1-backend/protocols/ping/index.html"><font face="arial, helvetica, sans-serif">Ping</font></a></td>
</tr>
<tr>
<td colspan="2" height="20"><a href="../../1-backend/cgi_perl/search_engine/index.html">-创建搜索引擎</a></td>
</tr>
<tr>
<td colspan="2" height="16">-<a href="../../1adobe/GoLive/index.html">Adobe GoLive</a></td>
</tr>
<tr>
<td colspan="2"><a href="../../1-backend/cgi_perl/templates/index.html">模板</a></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#666699"><font color="#FFFFFF">合作伙伴</font></td>
</tr>
<tr>
<td colspan="2" align="left">-<a href="http://www.5dmedia.com/" target="_blank">5D精英网</a></td>
</tr>
<tr align="center">
<td colspan="2"> <img src="../../Library/front_monkey.gif" width="59" height="68"></td>
</tr>
</tbody>
</table>
<br><!-- #EndLibraryItem --></td>
<!-- End of headlines (column 1: left column) --> <!-- Gutter between columns 1 and 2 -->
<td width="10" height="794"><img src="http://www.sohu.com/images/pixel.gif" width=10></td>
<!-- Search box and directories (columns 2 and 3: middle columns, combined into one) -->
<td align=center valign=top width="558">
<div align="left"><!-- #BeginEditable "1" -->
<title>理解XSL</title>
理解XSL<a href="mailto:jay@wired.com">Jay
Greenspan</a>
<p><br>
<b>第二页:攀登结果树</b></p>
<p>你从本文中学到的最重要的一点是XSL不仅仅是应用样式。当使用XML处理器时,XSL源文档中的信息将被评价、重新安排,然后重新组装。我们最终得到的不只是XML数据的可爱的版本
- 而是可以被容易地添加、修改和重新排序的灵活的源信息。这个最终产品叫做结果树(Result Tree)。</p>
<p>这通过一系列测试产生。下面是一个简单的例子:</p>
<pre>
<xsl:template match="recipe_name">
<P>
<xsl:process-children/>
</P>
</xsl:template>
</pre>
<p>最先要解释的是以"/" 结束的标记符是空的。即此种类型的标记符的起始和结束标记符之前什么也不发生。在HTML中类似的例子是<img>标记符。因为一个图像所需的所有信息都包含在一个标记符中,所以就没有必要存在结束标记符</img>。组织良好的XML文档可以接受空标记符,同时XSL样式表必须是组织良好的XML。</p>
<p>让我们再回到例子,它告诉XSL处理器如果发现一套<recipe_name>标记符,就应该分离出内容然后用<p>和</p>包围起来。或者,如果你想炫耀你的XSL的知识,你可以说“添加到结果树中。”</p>
<p>这是一个相当简单的测试,而且很典型。XML元素的内容被表现信息所包围。</p>
<p>现在让我们看看书写菜谱的XSL样式表的完整例子。</p>
<p>在我讲述更多的XSL标记之前,我要解释一个可能被问到的问题。谁都知道在HTML中<p>本身就足够了,那么我为什么要使用结束的</p>标记符呢?</p>
<p>有人能回答吗?</p>
<p>答案是:没有对应的结束标记符,那部分就不是组织良好的XML,于是会产生一个致命的错误。<a href="day1_3.html">>></a></p>
<p><b>理解XSL</b><br>
<font color="#FF0000">第一页</font> <a href="day1_1.html">理解XSL</a><br>
<font color="#FF0000">第二页</font> 攀登结果树<br>
<font color="#FF0000">第三页</font> <a href="day1_3.html">一个XSL样式表</a><br>
<font color="#FF0000">第四页</font> <a href="day1_4.html">选择XSL</a><br>
<font color="#FF0000">第五页</font> <a href="day1_5.html">从规范到实现</a> </p>
<!-- #EndEditable --></div>
</td>
<!-- End of search box and directories (columns 2 and 3: middle columns, combined into one) -->
<!-- Gutter between columns 3 and 4 --> <!-- Other stuff (column 4: right column) -->
<!-- End of other stuff (column 4: right column) --> </tr>
</table>
<!-- End of table surrounding page contents -->
<hr noshade size=1 width=700>
<span class=eng><br>
Copyright (C) 1998-2000 Internet Technologies China. All rights reserved.
</span>
</center>
</body>
<!-- #EndTemplate --></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -