Cheat Sheet: XPath
Axes, predicates, functions with example queries.