-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert /web/xpath folder to Markdown (es) (#8155)
Original PR by: Queen Vinyl Da.i'gyu-Kazotetsu <[email protected]>
- Loading branch information
Showing
34 changed files
with
282 additions
and
313 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: ancestor-or-self | ||
slug: Web/XPath/Axes/ancestor-or-self | ||
translation_of: Web/XPath/Axes/ancestor-or-self | ||
original_slug: Web/XPath/Ejes/ancestor-or-self | ||
--- | ||
El nodo `ancestor-or-self` indica el nodo de contexto y todos sus antecesores, incluyendo el nodo raiz. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: ancestor | ||
slug: Web/XPath/Axes/ancestor | ||
translation_of: Web/XPath/Axes/ancestor | ||
original_slug: Web/XPath/Ejes/ancestor | ||
--- | ||
El eje `ancestor` indica todos los antecesores del nodo de contexto comenzando con el nodo padre y viajando hacia el nodo raiz. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: attribute | ||
slug: Web/XPath/Axes/attribute | ||
translation_of: Web/XPath/Axes/attribute | ||
original_slug: Web/XPath/Ejes/attribute | ||
--- | ||
El eje `attribute` indica los atributos del nodo de contexto. Sólo los elementos tienen atributos. Este eje se puede abreviar con el signo (`@`). |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: child | ||
slug: Web/XPath/Axes/child | ||
translation_of: Web/XPath/Axes/child | ||
original_slug: Web/XPath/Ejes/child | ||
--- | ||
El eje `child` indica el hijo del nodo de contexto. Si una expresión XPath no especifica un eje, se entiende por defecto. Ya que sólo los nodos raiz o los nodos elementos tienen hijos, cualquier otro uso no seleccionará nada. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: descendant-or-self | ||
slug: Web/XPath/Axes/descendant-or-self | ||
translation_of: Web/XPath/Axes/descendant-or-self | ||
original_slug: Web/XPath/Ejes/descendant-or-self | ||
--- | ||
El eje `descendant-or-self` indica el nodo de contexto y todos sus descendientes. **No** se incluyen los nodos atributos y namespaces - el `parent` de un nodo `attribute` es un nodo elemento, pero los nodos `attribute` no son los hijos de sus padres. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: descendant | ||
slug: Web/XPath/Axes/descendant | ||
translation_of: Web/XPath/Axes/descendant | ||
original_slug: Web/XPath/Ejes/descendant | ||
--- | ||
El eje `descendant` indica todos los hijos del nodo de contexto, y todos sus hijos y así sucesivamente. **No** se incluyen los atributos y namespaces - el `parent` de un nodo `attribute` es un nodo elemento, pero los nodos `attribute` no son los hijos de sus padres. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: following-sibling | ||
slug: Web/XPath/Axes/following-sibling | ||
translation_of: Web/XPath/Axes/following-sibling | ||
original_slug: Web/XPath/Ejes/following-sibling | ||
--- | ||
El eje `following-sibling` indica todos los nodos que tienen el mismo padre que el nodo de contexto y aparecen después del nodo de contexto en el documento de origen. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: following | ||
slug: Web/XPath/Axes/following | ||
translation_of: Web/XPath/Axes/following | ||
original_slug: Web/XPath/Ejes/following | ||
--- | ||
El eje `following` indica todos los nodos que aparecen después del nodo de contexto, excepto cualquier nodo `descendant`, `attribute` y `namespace`. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: Ejes | ||
slug: Web/XPath/Axes | ||
tags: | ||
- Todas_las_Categorías | ||
- XPath | ||
- XSLT | ||
translation_of: Web/XPath/Axes | ||
original_slug: Web/XPath/Ejes | ||
--- | ||
{{XsltRef}}Existen trece ejes diferentes en la especificación [XPath](es/XPath). Un eje representa una relación con el nodo de contexto, y se utiliza para localizar nodos relativos a ese nodo en el arbol. Lo siguiente es una descripción resumida de los trece ejes disponibles y el grado de soporte disponible en [Gecko](es/Gecko). | ||
|
||
Para mas información sobre el uso de las expresiones XPath, por favor vea la sección [Para Futuras Lecturas](es/Transformando_XML_con_XSLT/Para_Futuras_Lecturas) al final del documento de [Transformando XML con XSLT](es/Transformando_XML_con_XSLT). | ||
|
||
- [ancestor](es/XPath/Ejes/ancestor) | ||
- : Indica todos los antecesores del nodo de contexto comenzando con el nodo padre y viajando hacia el nodo raiz. | ||
- [ancestor-or-self](es/XPath/Ejes/ancestor-or-self) | ||
- : Indica el nodo de contexto y todos sus antecesores, incluyendo el nodo raiz. | ||
- [attribute](es/XPath/Ejes/attribute) | ||
- : Indica los atributos del nodo de contexto. Sólo los elementos tienen atributos. Este eje se puede abreviar con el signo (`@`). | ||
- [child](es/XPath/Ejes/child) | ||
- : Indica el hijo del nodo de contexto. Si una expresión XPath no especifica un eje, se entiende por defecto. Ya que sólo los nodos raiz o los nodos elementos tienen hijos, cualquier otro uso no seleccionará nada. | ||
- [descendant](es/XPath/Ejes/descendant) | ||
- : Indica todos los hijos del nodo de contexto, y todos sus hijos y así sucesivamente. **No** se incluyen los atributos y namespaces - el `parent` de un nodo `attribute` es un nodo elemento, pero los nodos `attribute` no son los hijos de sus padres. | ||
- [descendant-or-self](es/XPath/Ejes/descendant-or-self) | ||
- : Indica el nodo de contexto y todos sus descendientes. **No** se incluyen los nodos atributos y namespaces - el `parent` de un nodo `attribute` es un nodo elemento, pero los nodos `attribute` no son los hijos de sus padres. | ||
- [following](es/XPath/Ejes/following) | ||
- : Indica todos los nodos que aparecen después del nodo de contexto, excepto cualquier nodo `descendant`, `attribute` y `namespace`. | ||
- [following-sibling](es/XPath/Ejes/following-sibling) | ||
- : Indica todos los nodos que tienen el mismo padre que el nodo de contexto y aparecen después del nodo de contexto en el documento de origen. | ||
- [namespace](es/XPath/Ejes/namespace)_(no soportado)_ | ||
- : Indica todos los nodos que están en el ámbito del nodo de contexto. En este caso, el nodo de contexto debe tener un nodo elemento. | ||
- [parent](es/XPath/Ejes/parent) | ||
- : Indica el único nodo que es el padre del nodo de contexto. Se puede abreviar con dos puntos (`..`). | ||
- [preceding](es/XPath/Ejes/preceding) | ||
- : Indica todos los nodos que preceden al nodo de contexto en el documento excepto cualquier nodo `ancestor`, `attribute` y `namespace`. | ||
- [preceding-sibling](es/XPath/Ejes/preceding-sibling) | ||
- : Indica todos los nodos que tienen el mismo padre que el nodo de contexto y aparecen antes que el nodo de contexto en el documento de origen. | ||
- [self](es/XPath/Ejes/self) | ||
- : Indica el nodo de contexto si mismo. Se puede abreviar con un solo punto (`.`). | ||
|
||
Categorias | ||
|
||
interwiki links |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: namespace | ||
slug: Web/XPath/Axes/namespace | ||
translation_of: Web/XPath/Axes/namespace | ||
original_slug: Web/XPath/Ejes/namespace | ||
--- | ||
_(not supported)_ | ||
|
||
El eje `namespace` indica todos los nodos que están en el ámbito del nodo de contexto. En este caso, el nodo de contexto debe tener un nodo elemento. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: parent | ||
slug: Web/XPath/Axes/parent | ||
translation_of: Web/XPath/Axes/parent | ||
original_slug: Web/XPath/Ejes/parent | ||
--- | ||
El eje `parent` indica el único nodo que es el padre del nodo de contexto. Se puede abreviar con dos puntos (`..`). |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: preceding-sibling | ||
slug: Web/XPath/Axes/preceding-sibling | ||
translation_of: Web/XPath/Axes/preceding-sibling | ||
original_slug: Web/XPath/Ejes/preceding-sibling | ||
--- | ||
El eje `preceding-sibling` indica todos los nodos que tienen el mismo padre que el nodo de contexto y aparecen antes que el nodo de contexto en el documento de origen. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: preceding | ||
slug: Web/XPath/Axes/preceding | ||
translation_of: Web/XPath/Axes/preceding | ||
original_slug: Web/XPath/Ejes/preceding | ||
--- | ||
El eje `preceding` indica todos los nodos que preceden al nodo de contexto en el documento excepto cualquier nodo `ancestor`, `attribute` y `namespace`. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: contains | ||
slug: Web/XPath/Functions/contains | ||
translation_of: Web/XPath/Functions/contains | ||
original_slug: Web/XPath/Funciones/contains | ||
--- | ||
{{ XsltRef() }} | ||
|
||
La función `contains` determina si la primera cadena del argumento contiene la segunda cadena del argumento y devuelve el booleano verdadero o falso. | ||
|
||
### Sintaxis | ||
|
||
contains( haystack , needle ) | ||
|
||
### Argumentos | ||
|
||
- `haystack` | ||
- : La cadena donde buscar | ||
|
||
- `needle` | ||
- : La subcadena a buscar en `haystack` | ||
|
||
### Devuelve | ||
|
||
`true` si `haystack` contiene `needle`. Si no, `false`. | ||
|
||
### Definido | ||
|
||
[XPath 1.0 4.2](http://www.w3.org/TR/xpath#function-contains) | ||
|
||
### Soporte en Gecko | ||
|
||
Soportado. |
Oops, something went wrong.