ancestor::

W3C Working Draft

the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; thus the parent is the first node on the axis, and the parent's parent is the second node on the axis; parent here is defined the same as with the parent axis