W3cubDocs

/XSLT & XPath

ancestor

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

© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XPath/Axes/ancestor