XPath: Syntax

Funktionen (Auszug):

Name Typ Ergebnis
position() number Position des Knotens im Kontext
last() number Anzahl der Knoten im Kontext
id(string) node-set Das Element mit ID string
name() string Der komplette Name (ex:head)
namespace-uri() string http://www.example.org/
local-name() string head
not(ausdruck) boolean Negation
true() boolean TRUE
false() boolean FALSE

XPointer-Funktionen:
range-to(following::td)
string-range(//p, "Text", 1, 3)