The ancestor-or-self
axis indicates the context node and all of its ancestors, including the root node.
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