| English | česky | Nederlands | Français | >> Español << | По русски | Deutsch | ZVON > Tutorials > XPath Tutorial |
| Intro / Buscar / ZVON |
| >> Ejemplo 22 << | Ant | Prox |
| //BBB[position() mod 2 = 0 ] |
|---|
|
<AAA> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <CCC/> <CCC/> <CCC/> </AAA> |
| Abrir el ejemplo en XLab. | Vista arborescente (JPG) |
| //BBB[ position() = floor(last() div 2 + 0.5) or position() = ceiling(last() div 2 + 0.5) ] |
|---|
|
<AAA> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <CCC/> <CCC/> <CCC/> </AAA> |
| Abrir el ejemplo en XLab. | Vista arborescente (JPG) |
| //CCC[ position() = floor(last() div 2 + 0.5) or position() = ceiling(last() div 2 + 0.5) ] |
|---|
|
<AAA> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <CCC/> <CCC/> <CCC/> </AAA> |
| Abrir el ejemplo en XLab. | Vista arborescente (JPG) |