⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xsl patterns.htm

📁 这是一本关于XML的学习的书
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0068)file://G:\application\XSL%20uguid\Getting%20Started%20with%20XSL.htm -->
<HTML><HEAD><TITLE>XSL 模式语言</TITLE>
<META content="text/html; charset=gb_2312-80" http-equiv=Content-Type>
<STYLE type=text/css>.normal10 {
	FONT-SIZE: 11pt
}
.normal9 {
	FONT-SIZE: 9pt
}
A {
	TEXT-DECORATION: none
}
A:hover {
	COLOR: red; TEXT-DECORATION: underline
}
A {
	COLOR: cornflowerblue; FONT-FAMILY: "新细明体", "宋体"; FONT-SIZE: 11pt; FONT-WEIGHT: bold
}
.normal105 {
	FONT-SIZE: 11pt
}
.p {
	FONT-SIZE: 11pt
}
</STYLE>
<LINK href="file://///Icdserver/xml/application/XSL%20uguid/level_1.files/Global.css" rel=stylesheet>
<META content="MSHTML 5.00.2014.210" name=GENERATOR><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 align=center border=0 width="85%">
  <TBODY>
  <TR>
    <TD height=69 width="22%">&nbsp;</TD>
    <TD height=69 width="53%"> 
      <H2 align=center><font size="4">XSL 模式语言</font></H2>
    </TD>
    <TD height=69 width="25%"><A name=top></A></TD></TR>
  <TR>
    <TD colSpan=3 height=600> 
      <P><SPAN class=normal105>上一篇:<a href="Getting Started with XSL.htm" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/Getting%20Started%20with%20XSL.htm" class="normal105">开始学习样式表 
        </a></SPAN><BR>
        <SPAN 
      class=normal105>下一篇:<span class="normal105"><span class="normal105">XSL的高级话题</span></span> 
        </SPAN><BR>
        <SPAN class=normal105>返 回 :<span class="normal105"> <SPAN 
      class=normal10><A 
      href="xml_devguid_catalog.htm" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/xml_devguid_catalog.htm"><SPAN 
      class=normal105><span class="normal105"><span class="normal105">XSL<span class="normal105">开发者指南</span></span></span></SPAN></A></SPAN> 
        </span></SPAN><BR>
        <FONT 
      size=2><BR>
        </FONT><font size="2" class="normal105">XSL 模式语言提供了一种简单的在Xml文档中鉴别节点的查询语言,这种语言基于节点的类型,名称,数值,以及文档中节点与节点之间的关系。例如,查询条件“寻找包含在文档根的&quot;<span class="normal105">authors</span>&quot;元素中的且period属性其值为‘<span class="normal105">classical</span>’的‘<span class="normal105">author</span>’元素.&quot;能表示成如下的一个Xsl模式语言形式:"<span class="normal105">/authors/author[@period='classical']</span>".</font></P>
      <p><font size="2" class="normal105">这些简单的查询是一种Xsl转换语言的核心部分,他们把查询结果和模板结合起来用于生成一个新的Xml文档.使用Xsl模式语法的查询也能直接使用Microsoft 
        Internet Explorer5的Xml文档对象模型执行.</font></p>
      <p><font size="2"><span class="normal105">Internet Explorer 5 是按照可扩展样式表(十二月十八号草案)第2.6节描述的内容来实现Xsl模式语言的.你可以在下面的地址找到 
        <a 
href="../../../www.w3.org/TR/1998/WD-xsl-19981216.html" tppabs="http://www.w3.org/TR/1998/WD-xsl-19981216.html">http://www.w3.org/TR/1998/WD-xsl-19981216.html</a>&nbsp;,除了下面的这些例外:</span></font></p>
      <ul>
        <li><span class="normal105"><span class="normal105"><span class="normal105"><span class="normal105"><font size="2" face="Arial"><b><span class="normal105">first-of-any()</span></b> 
          </font> </span></span></span></span>
        <li><span class="normal105"><span class="normal105"><font size="2" face="Arial"><b><span class="normal105">last-of-any</span><span class="normal105">()</span></b> 
          </font> </span></span>
        <li><span class="normal105"><span class="normal105"><font size="2" face="Arial"><b><span class="normal105">first-of-type<span class="normal105"><span class="normal9"><span class="normal105">()</span></span></span></span></b> 
          </font> </span></span>
        <li><span class="normal105"><span class="normal105"><font size="2" face="Arial"><b><span class="normal105">last-of-type</span><span class="normal105">()</span></b> 
          </font> </span></span>
        <li><span class="normal105"><span class="normal105"><font size="2" face="Arial"><b><span class="normal105">ancestor-or-self()</span></b></font><span class="normal105"><font size="2"> 
          </font></span></span></span></li>
      </ul>
      <p><font size="2" class="normal105"> Internet Explorer 5 XSL 发布版也包含了很多扩展来增强Xsl的功能.参看在 
        <a 
href="../../../www.w3.org/TandS/QL/QL98/pp/xql.html" tppabs="http://www.w3.org/TandS/QL/QL98/pp/xql.html">http://www.w3.org/TandS/QL/QL98/pp/xql.html</a>&nbsp;的XQL建议中描述的Xsl模式语言的扩展.</font></p>
      <p><font size="2"><span class="normal105">有关主题:</span></font></p>
      <ul>
        <li><span class="normal105"><font size="2"><a 
    href="Introduction to the Syntax of XSL Patterns.htm" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/Introduction%20to%20the%20Syntax%20of%20XSL%20Patterns.htm">介绍Xsl模式语言的语法</a> 
          </font> </span>
        <li><span class="normal105"><font size="2"><a href="How XSL Defines the Context for XSL Pattern Queries.htm" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/How%20XSL%20Defines%20the%20Context%20for%20XSL%20Pattern%20Queries.htm">Xsl如何定义Xsl模式语言查询的上下文</a> 
          </font> </span>
          <ul>
            <li><span class="normal105"><font size="2"><a 
      href="../../../msdn.microsoft.com/xml/xslguide/patterns-xsl.asp#patterns-xsl-select" tppabs="http://msdn.microsoft.com/xml/xslguide/patterns-xsl.asp#patterns-xsl-select">选择模式</a> 
              </font> </span>
            <li><span class="normal105"><font size="2"><a 
      href="../../../msdn.microsoft.com/xml/xslguide/patterns-xsl.asp#patterns-xsl-test" tppabs="http://msdn.microsoft.com/xml/xslguide/patterns-xsl.asp#patterns-xsl-test">测试模式</a> 
              </font> </span>
            <li><span class="normal105"><font size="2"><a 
      href="../../../msdn.microsoft.com/xml/xslguide/patterns-xsl.asp#patterns-xsl-match" tppabs="http://msdn.microsoft.com/xml/xslguide/patterns-xsl.asp#patterns-xsl-match">匹配模式</a> 
              </font></span></li>
          </ul>
        <li><span class="normal105"><font size="2"><a href="How the DOM Defines the Context for XSL Pattern Queries.htm" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/How%20the%20DOM%20Defines%20the%20Context%20for%20XSL%20Pattern%20Queries.htm">DOM如何定义Xsl模式语言查询的样式</a></font> 
          </span>
        <li><span class="normal105"><font size="2"><a 
    href="Placing a List of Items into a Grid with the context() Method.htm" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/Placing%20a%20List%20of%20Items%20into%20a%20Grid%20with%20the%20context%28%29%20Method.htm">使用<span class="normal105">context</span>()方法在一个grid表格中安排一个项目链表</a></font> 
          </span>
        <li><span class="normal105"><font size="2"><a 
    href="Creating a Comma-Separated List of Items with the context() Method.htm" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/Creating%20a%20Comma-Separated%20List%20of%20Items%20with%20the%20context%28%29%20Method.htm">使用context方法生成一个逗号分割的项目链表</a></font></span></li>
        <li class="normal105"><span class="normal105"><font size="2">更多的信息能在下面的相关的主题中找到</font> 
          </span>
      </ul>
      <ul>
        <li><span class="normal105"><font size="2"><a 
  href="../../../msdn.microsoft.com/xml/reference/xsl/XSLPatternSyntax.asp" tppabs="http://msdn.microsoft.com/xml/reference/xsl/XSLPatternSyntax.asp">XSL 
          Patterns Reference</a> </font> </span>
        <li><span class="normal105"><font size="2"><a href="../../../msdn.microsoft.com/xml/xslguide/xsl-overview.asp" tppabs="http://msdn.microsoft.com/xml/xslguide/xsl-overview.asp">Getting 
          Started with XSL</a> </font> </span>
        <li><span class="normal105"><font size="2"><a href="../../../msdn.microsoft.com/xml/xslguide/xsl-match.asp" tppabs="http://msdn.microsoft.com/xml/xslguide/xsl-match.asp">Authoring 
          Match Patterns</a> </font></span></li>
      </ul>
    </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="Getting Started with XSL.htm#top" tppabs="http://www.xml.org.cn:8188/application/XSL%20uguid/Getting%20Started%20with%20XSL.htm#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年10月28日<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></TBODY></TABLE>
<H2 align=center>&nbsp;</H2><FONT face=宋体 lang=ZH-CN size=3>
<P align=justify>&nbsp;</P></FONT><FONT face=宋体 lang=ZH-CN 
size=3></FONT></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -