Skip to content

Commit

Permalink
Convert /web/xpath folder to Markdown (es) (#8155)
Browse files Browse the repository at this point in the history
Original PR by: Queen Vinyl Da.i'gyu-Kazotetsu <[email protected]>
  • Loading branch information
Graywolf9 committed Sep 21, 2022
1 parent e59f232 commit d86e963
Show file tree
Hide file tree
Showing 34 changed files with 282 additions and 313 deletions.
9 changes: 0 additions & 9 deletions files/es/web/xpath/axes/ancestor-or-self/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions files/es/web/xpath/axes/ancestor-or-self/index.md
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.
9 changes: 0 additions & 9 deletions files/es/web/xpath/axes/ancestor/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions files/es/web/xpath/axes/ancestor/index.md
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.
9 changes: 0 additions & 9 deletions files/es/web/xpath/axes/attribute/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions files/es/web/xpath/axes/attribute/index.md
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 (`@`).
9 changes: 0 additions & 9 deletions files/es/web/xpath/axes/child/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions files/es/web/xpath/axes/child/index.md
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.
9 changes: 0 additions & 9 deletions files/es/web/xpath/axes/descendant-or-self/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions files/es/web/xpath/axes/descendant-or-self/index.md
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.
9 changes: 0 additions & 9 deletions files/es/web/xpath/axes/descendant/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions files/es/web/xpath/axes/descendant/index.md
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.
9 changes: 0 additions & 9 deletions files/es/web/xpath/axes/following-sibling/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions files/es/web/xpath/axes/following-sibling/index.md
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.
9 changes: 0 additions & 9 deletions files/es/web/xpath/axes/following/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions files/es/web/xpath/axes/following/index.md
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`.
48 changes: 0 additions & 48 deletions files/es/web/xpath/axes/index.html

This file was deleted.

44 changes: 44 additions & 0 deletions files/es/web/xpath/axes/index.md
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
10 changes: 0 additions & 10 deletions files/es/web/xpath/axes/namespace/index.html

This file was deleted.

9 changes: 9 additions & 0 deletions files/es/web/xpath/axes/namespace/index.md
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.
9 changes: 0 additions & 9 deletions files/es/web/xpath/axes/parent/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions files/es/web/xpath/axes/parent/index.md
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 (`..`).
9 changes: 0 additions & 9 deletions files/es/web/xpath/axes/preceding-sibling/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions files/es/web/xpath/axes/preceding-sibling/index.md
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.
9 changes: 0 additions & 9 deletions files/es/web/xpath/axes/preceding/index.html

This file was deleted.

7 changes: 7 additions & 0 deletions files/es/web/xpath/axes/preceding/index.md
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`.
33 changes: 0 additions & 33 deletions files/es/web/xpath/functions/contains/index.html

This file was deleted.

33 changes: 33 additions & 0 deletions files/es/web/xpath/functions/contains/index.md
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.
Loading

0 comments on commit d86e963

Please sign in to comment.