aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/xpath/functions/count/index.html
blob: d6dadf348877fe556cacb0c95b8aa76aaf4e7d0c (plain)
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
---
title: count
slug: Web/XPath/Functions/count
tags:
  - XSLT
  - XSLT_Reference
translation_of: Web/XPath/Functions/count
---
<p>{{ XsltRef() }}</p>

<p><code>count</code> 関数はノード集合に含まれるノードの数を数え、その整数を返します。</p>

<h3 id="Syntax">構文</h3>

<pre class="eval">count(<em>node-set</em> )
</pre>

<h3 id="Arguments">引数</h3>

<dl>
 <dt><code><em>node-set</em></code></dt>
 <dd>カウント対象のノード集合。</dd>
</dl>

<h3 id="Returns">返値</h3>

<p>ノード集合に含まれるノードの数を表す整数。</p>

<h3 id="Defined">定義</h3>

<p><a href="https://www.w3.org/TR/xpath#function-count">XPath 1.0 4.1</a></p>

<h3 id="Gecko_support">Gecko での対応</h3>

<p>対応済み。</p>