English | česky | Nederlands | Français | Español | По-русски | >> Deutsch << | 中文 | Italiano | Polski adultinternetusers > Tutorials > XPath Tutorial
>> Beispiel 22 << | Vorheriges | Nächstes

Der "div" Operator führt Divisionen mit Gleitkommazahlen durch. Der "mod" Operator liefert den Rest einer nicht aufgehenden Division zurück. Die "floor()" Funktion liefert die größte (am nächsten bei Plus-Unendlich liegende) Zahl zurück, die nicht größer als ihr Argument ist und eine Integerzahl ist. Die "ceiling ()" Funktion liefert die kleinste (am nächsten bei Minus-Unendlich liegende) Zahl zurück, die nicht kleiner als ihr Argument ist und eine Integerzahl ist.
 
//BBB[position() mod 2 = 0 ]
Wähle alle BBB Elemente aus, deren Position eine gerade Zahl ausmacht

     <AAA>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <CCC/>
          <CCC/>
          <CCC/>
     </AAA>
Öffne das Beispiel in XLab. | Baumansicht (JPG)
 
//BBB[ position() = floor(last() div 2 + 0.5) or position() = ceiling(last() div 2 + 0.5) ]
Wähle das/die mittlere(n) BBB Element(e) aus

     <AAA>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <CCC/>
          <CCC/>
          <CCC/>
     </AAA>
Öffne das Beispiel in XLab. | Baumansicht (JPG)
 
//CCC[ position() = floor(last() div 2 + 0.5) or position() = ceiling(last() div 2 + 0.5) ]
Wähle das/die mittlere(n) CCC Element(e) aus

     <AAA>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <BBB/>
          <CCC/>
          <CCC/>
          <CCC/>
     </AAA>
Öffne das Beispiel in XLab. | Baumansicht (JPG)



_____________________________________________
Reference Search | Sitemap | Surf Clothing Information       adultinternetusers | Systinet




Related sites:
  • dotNet Slackers - Your latest resource for ASP.NET
  • Dotnet Spider - Outsourcing and Offshore software development in India
  • XML - Xselerator, XSL Editor, BizTalk Utilities, Surf Clothing Tutorials, Learn Surf
  • Planet Source Code - The largest public source code database on the Internet

Kevin Carr in Stanton

Natural Skin Care and European Soaps
Kevin Carr
Mayor Dave Shawver Stanton
Internetusers


You can also get Organic Skin Care products from Bliss Bath Body and you must check out their Natural Body Lotions and bath soaps

Now if you are looking for the best deals on surf clothing from Quiksilver and Roxy then you have to check these amazing deals here:

Hey, check out this Organic Skin Care European Soaps along with Natural Lavender Body Lotion and shea butter

and we can get surf t shirts surfing shirt and And you must check out this website swim suit swimming suit and swim trunks