XML technologies / XSLT / XSLT and XPath functions
(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 5.)
The existing node tests from XPath 1.0 are retained in XPath 2.0. In XPath 2.0, the tests item() and empty() extend the repertoire for testing sequences. Derived from the general node test node() further specialized tests are introduced in the form of attribute(), document-node(), element() and schema-element().
Name | Origin | Usage |
|---|---|---|
| XPath 2.0 | Test for attribute nodes |
| XPath 1.0 | Test for comment nodes |
| XPath 2.0 | Test for document nodes |
| XPath 2.0 | Test for element nodes |
| XPath 2.0 | Test for Item (of a sequence) |
| XPath 1.0 | Test for any node type |
| XPath 1.0 | Test for processing instructions |
| XPath 2.0 | Test for typed element nodes |
| XPath 1.0 | Test for text nodes |
Table: node tests in XPath 2.0 (not classified as functions).
Copyright © Galileo Press, Bonn 2008
You may print the online version for your private use.
Otherwise, this chapter from "XSLT 2.0 & XPath 2.0 ― Das umfassende Handbuch" is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Galileo Press, Rheinwerkallee 4, 53227 Bonn