| English | česky | >> Nederlands << | Français | Español | По русски | Deutsch | ZVON > Tutorials > XPath Tutorial |
| Begin / Zoek / ZVON |
| >> Voorbeeld 22 << | Vorig | Volgend |
| //BBB[position() mod 2 = 0 ] |
|---|
|
<AAA> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <BBB/> <CCC/> <CCC/> <CCC/> </AAA> |
| Open het voorbeeld in Xlab | Boomstructuur weergave (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> |
| Open het voorbeeld in Xlab | Boomstructuur weergave (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> |
| Open het voorbeeld in Xlab | Boomstructuur weergave (JPG) |