XML Tutorials - Herong's Tutorial Examples - Version 5.05, by Dr. Herong Yang
Evaluation Context
This section provides a quick introduction of evaluation context: current node, current position, number of nodes of the current node set, and current variables.
XPath expressions are always evaluated with respect to a context, which consists of:
The context node is referring to the current node in the source XML structure, which is represented as a tree of different types of nodes according to the Document Object Model (DOM):
For more details, tutorial notes on DOM in other chapters of this book.
Last update: 2014.
Table of Contents
Introduction of XML (eXtensible Markup Language)
DOM (Document Object Model) Programming Interface
SAX (Simple API for XML) Programming Interface
DTD (Document Type Definition) Introduction
Validating an XML Document against the Specified DTD Document Type
XSD (XML Schema Definition) Introduction
Validating XML Documents Against Specified XML Schemas
XSL (Extensible Stylesheet Language) Introduction
XSLT (XSL Transformations) Introduction
Data Types, Literals and Variables
Expressions and Location Paths
XSLT Elements as Programming Statements
Control and Generate XML Element in the Result
XML Tools Plugin for Notepad++