XQuery and XPath
XQuery 1.0 and XPath 2.0 overlap to a very large degree. They have the same data model and the same set of build-in functions and operators. XPath 2.0 is essentially a subset of XQuery 1.0.
XQuery has a number of features that are not included on XPath, such as FLWORS and XML constructors.
XQuery Versus XSLT
XQuery and XSLT are both languages designed to query and manipulate XML documents.
- Shared components
- The data model [same concepts of sequences, atomic values, nodes, and items. Namespaces are handled identically]
- Xpath 2.0
- Built-in functions and operators
- Differences
- sytax
- Paradigm differences: push versus pull
Links on the same subject: