forked from fengbird/JavaWebCoreNote
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsource7.xml
More file actions
66 lines (66 loc) · 3.3 KB
/
source7.xml
File metadata and controls
66 lines (66 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<XPathTutorial creator="[email protected]">
<key>count()</key>
<description lang="ita">La funzione count() calcola il numero degli elementi selezionati.</description>
<description lang="eng">Function count() counts the number of selected elements </description>
<description lang="ger">Die Funktion count() zählt die Anzahlt der ausgewählten Elemente</description>
<description lang="cze">
Funkce count() vrátí počet vybraných elementů </description>
<description lang="fre">
La fonction count() compte le nombre d'éléments sélectionnés.
</description>
<description lang="dut">Functie count() telt het aantal geselecteerde elementen</description>
<description lang="spa">La función count() cuenta el número de elementos seleccionados</description>
<description lang="rus">Функция count() возвращает число элементов в указанном множестве.</description>
<description lang="chi">count()函数可以计数所选元素的个数</description>
<source>
<AAA>
<CCC>
<BBB/>
<BBB/>
<BBB/>
</CCC>
<DDD>
<BBB/>
<BBB/>
</DDD>
<EEE>
<CCC/>
<DDD/>
</EEE>
</AAA>
</source>
<example path="//*[count(BBB)=2]">
<p lang="ita">Selezione degli elementi che possiedono due figli BBB</p>
<p lang="eng">Select elements which have two children BBB</p>
<p lang="ger">Wähle jene Elemente aus, die zwei BBB Kinder haben</p>
<p lang="cze">Vyber elementy, které mají právě dva přímé potomky BBB</p>
<p lang="fre">Sélectionne les éléments ayant deux enfants BBB </p>
<p lang="dut">Selecteert alle elementen die twee BBB kinderen bevatten</p>
<p lang="spa">Selecciona los elementos que contienen dos hijos BBB</p>
<p lang="rus">Выбираются элементы, имеющие два дочерних элемента
BBB</p>
<p lang="chi">选择含有2个BBB子元素的元素</p>
</example>
<example path="//*[count(*)=2]">
<p lang="ita">Selezione degli elementi che possiedono 2 figli.</p>
<p lang="eng">Select elements which have 2 children</p>
<p lang="ger">Wähle jene Elemente aus, die zwei Kinder haben</p>
<p lang="cze">Vyber elementy, které mají právě dva přímé potomky</p>
<p lang="fre">Sélectionne les éléments ayant deux enfants</p>
<p lang="dut">Selecteert alle elementen die twee kinderen hebben</p>
<p lang="spa">Selecciona elementos con dos hijos</p>
<p lang="rus">Выбираются элементы, имеющие два произвольных дочерних элемента</p>
<p lang="chi">选择含有2个子元素的元素</p>
</example>
<example path="//*[count(*)=3]">
<p lang="ita">Selezione degli elementi che possiedono 3 figli.</p>
<p lang="eng">Select elements which have 3 children</p>
<p lang="ger">Wähle jene Elemente aus, die drei Kinder haben</p>
<p lang="cze">Vyber elementy, které mají právě tři přímé potomky</p>
<p lang="fre">Sélectionne les éléments ayant trois enfants</p>
<p lang="dut">Selecteert alle elementen die drie kinderen hebben</p>
<p lang="spa">Selecciona elementos con 3 hijos</p>
<p lang="rus">Выбираются элементы, имеющие три произвольных дочерних элемента</p>
<p lang="chi">选择含有3个子元素的元素</p>
</example>
</XPathTutorial>