XQUERY 1.0:XML查询语言 推荐标准
TransWiki - an Open Translation Project(OTP)
摘要_文档状态_目录 第1节 第2节 3.1~3.3节 3.4~3.6节 3.7节 3.8~3.13节 第4节 附录A 附录B,C,D 附录E,F,G,H,I
| Table of contents |
关于本文档翻译工作的说明、任务分配及进展情况,请参见
http://bbs.xml.org.cn/dispbbs.asp?boardid=14&id=9673&star=1#9673
尽量使用段落编辑(即点击要编辑段落右上方的[编辑]字样)
XQuery 1.0: An XML Query Language
W3C 工作草案 2004年7月23日
本版本:
http://www.w3.org/TR/2004/WD-xquery-20040723/ (http://www.w3.org/TR/2004/WD-xquery-20040723/)
最新版本:
http://www.w3.org/TR/xquery/ (http://www.w3.org/TR/xquery/)
以前版本:
http://www.w3.org/TR/2003/WD-xquery-20031112/ (http://www.w3.org/TR/2003/WD-xquery-20031112/) http://www.w3.org/TR/2003/WD-xquery-20030822/ (http://www.w3.org/TR/2003/WD-xquery-20030822/) http://www.w3.org/TR/2003/WD-xquery-20030502/ (http://www.w3.org/TR/2003/WD-xquery-20030502/)
编者:
Scott Boag (XSL WG), IBM Research <scott_boag@us.ibm.com> (mailto:%20scott_boag@us.ibm.com)
Don Chamberlin (XML Query WG), IBM Almaden Research Center <chamberlin@almaden.ibm.com> (mailto:%20chamberlin@almaden.ibm.com)
Mary F. Fernández (XML Query WG), AT&T Labs <mff@research.att.com> (mailto:%20mff@research.att.com)
Daniela Florescu (XML Query WG), BEA Systems <danielaf@bea.com> (mailto:danielaf@bea.com)
Jonathan Robie (XML Query WG), DataDirect Technologies <jonathan.robie@datadirect-technologies.com> (mailto:jonathan.robie@datadirect-technologies.com)
Jér?me Siméon (XML Query WG), IBM T.J. Watson Research Center <simeon@us.ibm.com> (mailto:simeon@us.ibm.com)
Copyright (http://www.w3.org/Consortium/Legal/ipr-notice#Copyright) ? 2004 W3C? (MIT, ERCIM, Keio (http://www.keio.ac.jp/)), All Rights Reserved. W3C liability (http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer), trademark (http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks), document use (http://www.w3.org/Consortium/Legal/copyright-documents) and software licensing (http://www.w3.org/Consortium/Legal/copyright-software) rules apply.
Abstract
XML is a versatile markup language, capable of labeling the information content of diverse data sources including structured and semi-structured documents, relational databases, and object repositories. A query language that uses the structure of XML intelligently can express queries across all these kinds of data, whether physically stored in XML or viewed as XML via middleware. This specification describes a query language called XQuery, which is designed to be broadly applicable across many types of XML data sources.
摘要
XML是一种通用标记语言,它能对各种数据源的信息内容进行标记,包括结构化和半结构化文档、关系数据库和对象库。一种智能地使用XML结构的查询语言能够表达所有这些类型数据之间的查询,不管它们是物理存储在XML中还是通过中间件被视为XML。本规范描述了一个称为XQuery的查询语言,它被设计为能广泛应用于很多类型的XML数据源之间。
Status of this Document
本文档状态
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index (http://www.w3.org/TR/) at http://www.w3.org/TR/.
这一节描述了本文档在发布时的状态。本文档可能被其他文档代替。W3C的发布的当前文档列表和本技术报告的最新修改可以在http://www.w3.org/TR/ 的W3C 技术报告索引 (http://www.w3.org/TR/)找到。
This is a public W3C Working Draft for review by W3C Members and other interested parties. Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
这是一个公开的W3C工作草案以供W3C成员和其它感兴趣的团体审阅。作为一个工作草案发布不意味着受到W3C成员资格的认可。这是一个草案文档,它可能在任何时候被其它文档更新、取代或者作废 。除了正在进行的工作外,引用这个文档是不合适的。
XQuery 1.0 has been defined jointly by the XML Query Working Group (http://www.w3.org/XML/Query) and the XSL Working Group (http://www.w3.org/Style/XSL/) (both part of the XML Activity (http://www.w3.org/XML/Activity.html)). The XPath 2.0 and XQuery 1.0 Working Drafts are generated from a common source. These languages are closely related, sharing much of the same expression syntax and semantics, and much of the text found in the two Working Drafts is identical.
XQuery 1.0是由XML Query工作组 (http://www.w3.org/XML/Query)(XML Query Working Group )和XSL工作组 (http://www.w3.org/Style/XSL/)(XSL Working Group)(二者都是XML活动组 (http://www.w3.org/XML/Activity.html)(XML Activity))的一部分)联合定义的。XPath 2.0和XQuery 1.0工作草案是由同一个源头产生的。这两种语言紧密相连,共用很多相同的表达式语法和语义,而且两个工作草案中的很多文本是一模一样的。
This working draft includes a number of changes made in response to comments received during the Last Call period that ended on Feb. 15, 2004. The working group is continuing to process these comments, and additional changes are expected. A list of changes introduced by this draft can be found in I Revision Log.
这个工作草案包括了很多修改,这些修改是对于2004年2月15日截止的最后征求意见(Last Call )阶段收到的建议的响应。工作组正在继续处理这些建议,预计还会有进一步的修改。这个草案作出的修改清单可以在I 更正日志中找到。
This document reflects decisions taken up to and including the face-to-face meeting in Cambridge, MA during the week of June 21, 2004. These decisions are recorded in the Last Call issues list (http://www.w3.org/2004/07/xquery-issues.html) (http://www.w3.org/2004/07/xquery-issues.html). However, some of these decisions may not yet have been made in this document.
本文档反映了被采纳的决议,其中包括2004年7月21日那一周在Cambridge, MA的面对面会议。这些决议记录在最后征求意见问题清单 (http://www.w3.org/2004/07/xquery-issues.html)(http://www.w3.org/2004/07/xquery-issues.html) 里。但是,这些决议中的某些部分可能并没有在本文档中体现出来。
Public comments on this document and its open issues are invited. Comments should be sent to the W3C XPath/XQuery mailing list, public-qt-comments@w3.org (mailto:public-qt-comments@w3.org) (archived at http://lists.w3.org/Archives/Public/public-qt-comments/ (http://lists.w3.org/Archives/Public/public-qt-comments/)), with “[XQuery]” at the beginning of the subject field.
欢迎对对本文档及其悬而未决的问题给出公开建议。建议请发到W3C XPath/XQuery邮件列表,public-qt-comments@w3.org (mailto:public-qt-comments@w3.org)(存档在http://lists.w3.org/Archives/Public/public-qt-comments/ (http://lists.w3.org/Archives/Public/public-qt-comments/)),题目栏请以"[XQuery]"开头。
The patent policy for this document is expected to become the 5 February 2004 W3C Patent Policy (http://www.w3.org/Consortium/Patent-Policy-20040205/), pending the Advisory Committee review of the renewal of the XML Query Working Group. Patent disclosures relevant to this specification may be found on the XML Query Working Group's patent disclosure page (http://www.w3.org/2002/08/xmlquery-IPR-statements) and the XSL Working Group's patent disclosure page (http://www.w3.org/Style/XSL/Disclosures). An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) with respect to this specification should disclose the information in accordance with section 6 of the W3C Patent Policy (http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure).
本文档的专利条例有望是2004年2月5日的W3C专利条例,它使得咨询委员会(Advisory Committee)对XML Query工作组的更新的审查悬而未决。与本规范相关的已公开的专利可以在Query工作组的专利公开页面 (http://www.w3.org/2002/08/xmlquery-IPR-statementsXML)(XML Query Working Group's patent disclosure page)和XSL工作组的专利公开页面 (http://www.w3.org/Style/XSL/Disclosures)(XSL Working Group's patent disclosure page)上找到。如果有人知道一种专利包含了与本规范相关的实质声明(Essential Claim(s) ),请按照W3C专利条例 (http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure)的第6节进行公开。
Table of Contents
1 Introduction 引言 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-introduction)
2 Basics 基础 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-basics)
2.1 Expression Context 表达式上下文 (http://www.w3.org/TR/2004/WD-xquery-20040723/#context)
2.1.1 Static Context 静态上下文 (http://www.w3.org/TR/2004/WD-xquery-20040723/#static_context)
2.1.2 Dynamic Context 动态上下文 (http://www.w3.org/TR/2004/WD-xquery-20040723/#eval_context)
2.2 Processing Model 处理模型 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-processing-model)
2.2.1 Data Model Generation 数据模型产生 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-data-model-generation)
2.2.2 Schema Import Processing 模式导入处理 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-schema-import-processing)
2.2.3 Expression Processing 表达式处理 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-expression-processing)
2.2.3.1 Static Analysis Phase 静态上下文阶段 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-static-analysis)
2.2.3.2 Dynamic Evaluation Phase 动态上下文阶段 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-dynamic-evaluation)
2.2.4 Serialization 序列化 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-serialization)
2.2.5 Consistency Constraints 一致性约束 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-consistency-constraints)
2.3 Documents 文档 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-important-concepts)
2.3.1 Document Order 文档顺序 (http://www.w3.org/TR/2004/WD-xquery-20040723/#N10942)
2.3.2 Atomization 原子化 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-atomization)
2.3.3 Effective Boolean Value 有效布尔值 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-ebv)
2.3.4 Input Sources 输入源 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-input-sources)
2.4 Types 类型 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-types)
2.4.1 Predefined Types 预定义类型 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-predefined-types)
2.4.2 Typed Value and String Value 类型值和字符串值 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-typed-value)
2.4.3 SequenceType Syntax 序列类型语法 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-sequencetype-syntax)
2.4.4 SequenceType Matching 序列类型匹配 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-sequencetype-matching)
2.4.4.1 Matching a SequenceType and a Value 匹配一个序列类型和一个值 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-matching-value)
2.4.4.2 Matching an ItemType and an Item 匹配一个项类型和一个项 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-matching-item)
2.4.4.3 Element Test 元素测试 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-element-test)
2.4.4.4 Schema Element Test 模式元素测试 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-schema-element-test)
2.4.4.5 Attribute Test 属性测试 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-attribute-test)
2.4.4.6 Schema Attribute Test 模式属性测试 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-schema-attribute-test)
2.5 Error Handling 错误处理 (http://www.w3.org/TR/2004/WD-xquery-20040723/#errors)
2.5.1 Kinds of Errors 错误种类 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-kinds-of-errors)
2.5.2 Handling Dynamic Errors 处理动态错误 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-handling-dynamic)
2.5.3 Errors and Optimization 错误与优化 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-errors-and-opt)
2.6 Optional Features 可选特征 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-optional-features)
2.6.1 Schema Import Feature 模式导入特征 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-schema-import-feature)
2.6.2 Static Typing Feature 静态类型特征 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-static-typing-feature)
2.6.3 Full Axis Feature 全轴特征 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-full-axis-feature)
2.6.4 Module Feature 模块特征 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-module-feature)
2.6.5 Pragmas 附注 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-pragmas)
2.6.6 Must-Understand Extensions 必须理解的扩展 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-must-understand)
2.6.6.1 XQuery Flagger XQuery标记器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#N11665)
2.6.7 Static Typing Extensions 静态类型扩展 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-static-extensions)
2.6.7.1 XQuery Static Flagger XQuery静态标记器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-xquery-static-flag)
2.7 Comments 注释 (http://www.w3.org/TR/2004/WD-xquery-20040723/#comments)
3 Expressions 表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-expressions)
3.1 Primary Expressions 基本表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-primary-expressions)
3.1.1 Literals 字面字符 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-literals)
3.1.2 Variable References 变量引用 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-variables)
3.1.3 Parenthesized Expressions 括弧表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-paren-expressions)
3.1.4 Context Item Expression 上下文项表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-context-item-expression)
3.1.5 Function Calls 函数调用 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-function-calls)
3.2 Path Expressions 路径表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-path-expressions)
3.2.1 Steps 路径步 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-steps)
3.2.1.1 Axes 轴 (http://www.w3.org/TR/2004/WD-xquery-20040723/#axes)
3.2.1.2 Node Tests 节点测试 (http://www.w3.org/TR/2004/WD-xquery-20040723/#node-tests)
3.2.2 Predicates 谓词 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-predicates)
3.2.3 Unabbreviated Syntax 全称语法 (http://www.w3.org/TR/2004/WD-xquery-20040723/#unabbrev)
3.2.4 Abbreviated Syntax 缩写语法 (http://www.w3.org/TR/2004/WD-xquery-20040723/#abbrev)
3.3 Sequence Expressions 序列表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-sequence-expressions)
3.3.1 Constructing Sequences 构造序列 (http://www.w3.org/TR/2004/WD-xquery-20040723/#construct_seq)
3.3.2 Filter Expressions 筛选表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-filter-expr)
3.3.3 Combining Node Sequences 合并节点序列 (http://www.w3.org/TR/2004/WD-xquery-20040723/#combining_seq)
3.4 Arithmetic Expressions 算术表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-arithmetic)
3.5 Comparison Expressions 比较表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-comparisons)
3.5.1 Value Comparisons 值比较 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-value-comparisons)
3.5.2 General Comparisons 一般比较 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-general-comparisons)
3.5.3 Node Comparisons 节点比较 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-node-comparisons)
3.6 Logical Expressions 逻辑表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-logical-expressions)
3.7 Constructors 构造器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-constructors)
3.7.1 Direct Element Constructors 直接元素构造器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-element-constructor)
3.7.1.1 Attributes 属性 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-attributes)
3.7.1.2 Namespace Declaration Attributes 命名空间声明属性 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-namespaces)
3.7.1.3 Content 内容 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-content)
3.7.1.4 Whitespace in Element Content 元素内容中的空白符 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-whitespace)
3.7.2 Other Direct Constructors 其它直接构造器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-otherConstructors)
3.7.3 Computed Constructors 计算构造器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-computedConstructors)
3.7.3.1 Computed Element Constructors 计算元素构造器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-computedElements)
3.7.3.2 Computed Attribute Constructors 计算属性构造器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-computedAttributes)
3.7.3.3 Document Node Constructors 文档节点构造器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-documentConstructors)
3.7.3.4 Text Node Constructors 文本节点构造器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-textConstructors)
3.7.3.5 Computed Processing Instruction Constructors 计算处理指令构造器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-computed-pis)
3.7.3.6 Computed Comment Constructors 计算注释构造器 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-computed-comments)
3.7.4 In-scope Namespaces of a Constructed Element 被构造元素的作用域内命名空间 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-ns-nodes-on-elements)
3.8 FLWOR Expressions FLWOR表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-flwor-expressions)
3.8.1 For and Let Clauses For和Let子句 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-for-let)
3.8.2 Where Clause Where子句 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-where)
3.8.3 Order By and Return Clauses Order By和Return子句 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-orderby-return)
3.8.4 Example 例子 (http://www.w3.org/TR/2004/WD-xquery-20040723/#N13991)
3.9 Ordered and Unordered Expressions 有序和无序表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-unordered-expressions)
3.10 Conditional Expressions 条件表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-conditionals)
3.11 Quantified Expressions 限定表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-quantified-expressions)
3.12 Expressions on SequenceTypes序列类型表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-expressions-on-datatypes)
3.12.1 Instance Of (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-instance-of)
3.12.2 Typeswitch (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-typeswitch)
3.12.3 Cast (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-cast)
3.12.4 Castable (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-castable)
3.12.5 Constructor Functions 构造器函数 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-constructor-functions)
3.12.6 Treat (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-treat)
3.13 Validate Expressions 验证表达式 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-validate)
3.13.1 Validating an Element Node 验证元素节点 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-validating-element)
3.13.2 Validating a Document Node 验证文档节点 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-validating-document)
4 Modules and Prologs 模块和序 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-query-prolog)
4.1 Version Declaration 版本声明 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-version-declaration)
4.2 Module Declaration 模块声明 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-module-declaration)
4.3 Xmlspace Declaration Xmlspace 声明 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-xmlspace-decls)
4.4 Default Collation Declaration 校对声明 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-default-collation-declaration)
4.5 Base URI Declaration URI声明 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-base-uri-decl)
4.6 Construction Declaration 构造声明 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-construction-declaration)
4.7 Default Namespace Declaration 缺省命名空间声明 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-default-namespace)
4.8 Default Ordering Declaration 缺省排序声明 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-default-ordering-decl)
4.9 Schema Import 模式导入 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-schema-imports)
4.10 Module Import 模块导入 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-module-imports)
4.11 Namespace Declaration 命名空间声明 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-namespace-decls)
4.12 Variable Declaration 变量声明 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-variable-declarations)
4.13 Function Declaration 函数声明 (http://www.w3.org/TR/2004/WD-xquery-20040723/#FunctionDeclns)
Appendices
A XQuery Grammar XQuery语法 (http://www.w3.org/TR/2004/WD-xquery-20040723/#nt-bnf)
A.1 EBNF (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-grammar)
A.1.1 Grammar Notes 语法注解 (http://www.w3.org/TR/2004/WD-xquery-20040723/#notes-on-parsing)
A.2 Lexical structure 词法结构 (http://www.w3.org/TR/2004/WD-xquery-20040723/#lexical-structure)
A.2.1 Terminal Types 结束类型 (http://www.w3.org/TR/2004/WD-xquery-20040723/#N157EE)
A.2.2 Whitespace Rules 空白符规则 (http://www.w3.org/TR/2004/WD-xquery-20040723/#whitespace-rules)
A.2.2.1 Default Whitespace Handling 缺省空白符处理 (http://www.w3.org/TR/2004/WD-xquery-20040723/#DefaultWhitespaceHandling)
A.2.2.2 ExplicitSpecial Whitespace Handling 特别显式空白符处理 (http://www.w3.org/TR/2004/WD-xquery-20040723/#ExplicitWhitespaceHandling)
A.2.3 Comments, Pragmas and Extensions 注释,附注和扩展 (http://www.w3.org/TR/2004/WD-xquery-20040723/#CommentsPragmasExtensions)
A.2.4 Lexical Rules 词法规则 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-lexical-states)
A.3 Reserved Function Names 保留的函数名 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-reserved-fn-names)
A.4 Precedence Order 优先级顺序 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-precedence-order)
B Type Promotion and Operator Mapping 类型提升和运算符映射 (http://www.w3.org/TR/2004/WD-xquery-20040723/#N16BD9)
B.1 Type Promotion 类型提升 (http://www.w3.org/TR/2004/WD-xquery-20040723/#promotion)
B.2 Operator Mapping 运算符映射 (http://www.w3.org/TR/2004/WD-xquery-20040723/#mapping)
C Context Components 上下文构件 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-xq-context-components)
C.1 Static Context Components 静态上下文构件 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-xq-static-context-components)
C.2 Dynamic Context Components 动态上下文构件 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-xq-evaluation-context-components)
C.3 Serialization Parameters 序列化参数 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-xq-serialization-parameters)
D References 参考文献 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-references)
D.1 Normative References 标准参考文献 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-normative-references)
D.2 Non-normative References 非标准参考文献 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-non-normative-references)
D.3 Non-normative Background References 非标准背景参考文献 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-background-references)
D.4 Non-normative Informative Material 非标准参考性资料 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-informative-material)
E Glossary 词汇表 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-glossary)
F Summary of Error Conditions 错误情形总结 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-errors) (Non-Normative)
G Example Applications 应用实例 (http://www.w3.org/TR/2004/WD-xquery-20040723/#N180D5) (Non-Normative)
G.1 Joins 连接 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-joins)
G.2 Grouping 分组 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-grouping)
G.3 Queries on Sequence 序列上的查询 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-queries-on-sequence)
G.4 Recursive Transformations 递归转换 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-recursive-transformations)
G.5 Selecting Distinct Combinations 选择不同的组合 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-select-distinct)
H XPath 2.0 and XQuery 1.0 Issues XPath 2.0 和 XQuery 1.0 相关问题 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-issues) (Non-Normative)
I Revision Log 更正日志 (http://www.w3.org/TR/2004/WD-xquery-20040723/#id-revisions-log) (Non-Normative)
I.1 23 July 2004 (http://www.w3.org/TR/2004/WD-xquery-20040723/#N182A1)


