>> English << | česky | Nederlands | Français | Español | По русски | Deutsch ZVON > Tutorials > XPath Tutorial
Example 22 > Sample 2

Tree view

Example
 
//BBB[ position() = floor(last() div 2 + 0.5) or position() = ceiling(last() div 2 + 0.5) ]
Select middle BBB element(s)

     <AAA>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <CCC/>
          <CCC/>
          <CCC/>
     </AAA>
Open the example in XLab. | Go to example



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet