--- title: ancestor-or-self slug: Web/XPath/Ejes/ancestor-or-self translation_of: Web/XPath/Axes/ancestor-or-self ---

El nodo ancestor-or-self indica el nodo de contexto y todos sus antecesores, incluyendo el nodo raiz.

{{ languages( { "en": "en/XPath/Axes/ancestor-or-self", "fr": "fr/XPath/Axes/ancestor-or-self", "pl": "pl/XPath/Osie/ancestor-or-self" } ) }}