The ancestor
axis indicates all the ancestors of the context node beginning with the parent node and traveling through to the root node.
The ancestor
axis indicates all the ancestors of the context node beginning with the parent node and traveling through to the root node.