XPath is a language for finding information in an XML document. XPath is used to navigate through elements and attributes in an XML document.
Xpath是一种能够在XML文档中寻找信息的语言。它通过XML文档中的元素和属性来进行导航。

——————————————————————————–

What You Should Already Know
你应具备的知识
Before you continue you should have a basic understanding of the following:
在你继续前你应该具备以下知识的基础:

HTML / XHTML
XML / XML Namespaces[命名空间]

——————————————————————————–

What is XPath?
什么是XPath?
XPath is a syntax for defining parts of an XML document
XPath 是针对XML文档部分内容定义的语法
XPath uses path expressions to navigate in XML documents
XPath 使用路径表达式在XML文档中导航
XPath contains a library of standard functions
XPath 包含了一系列标准函数
XPath is a major element in XSLT
XPath 在XSLT当中是一个主要的元素
XPath is a W3C Standard
XPath是W3C标准

——————————————————————————–

XPath Path Expressions
XPath 路径表达式
XPath uses path expressions to select nodes or node-sets in an XML document. These path expressions look very much like the expressions you see when you work with a traditional computer file system.
XPath 使用路径表达式来选择XML文档中的nodes(节)或是node-set(节集)。这些路径表达式看上去与你平时所见的传统计算机文件系统路径非常地相似。

——————————————————————————–

XPath Standard Functions
XPath 标准函数
XPath includes over 100 built-in functions. There are functions for string values, numeric values, date and time comparison, node and QName manipulation, sequence manipulation, Boolean values, and more.
XPath包含了数量超过100的内置函数。这些函数针对字符串值,数字值,日期和时间比较,节操作,顺序操作,布尔值,等等。

——————————————————————————–

XPath is Used in XSLT
XPath被用在XSLT
XPath is a major element in the XSLT standard. Without XPath knowledge you will not be able to create XSLT documents.
在XSLT标准中XPath是主要的元素。没有XPath知识你将很难建立XSLT文档。

XQuery and XPointer are both built on XPath expressions. XQuery 1.0 and XPath 2.0 share the same data model and support the same functions and operators.
XQuery和XPointer都建立于XPath表达式。XQuery 1.0 和 XPath 2.0共享相同的数据模型并支持相同的函数和操作

——————————————————————————–

XPath is a W3C Standard
XPath是W3C标准
XPath became a W3C Recommendation 16. November 1999.
XPat于1999年11月16日成为W3C的推荐标准

XPath was designed to be used by XSLT, XPointer and other XML parsing software.
XPath被设计成为用语XSLT,XPoniter以及其他XML解析的软件。