W3cubDocs

/XSLT & XPath

ancestor-or-self

The ancestor-or-self axis indicates the context node and all of its ancestors, including the root node.

© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XPath/Axes/ancestor-or-self