aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xpath/functions/sum/index.html
blob: 2115a2239dd102c319dbd9b66bcc8f575630f368 (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
36
---
title: sum
slug: Web/XPath/Functions/sum
tags:
  - Référence_XSLT
translation_of: Web/XPath/Functions/sum
original_slug: Web/XPath/Fonctions/sum
---
<p>
{{ XsltRef() }}
</p><p><br>
La fonction <code>sum</code> retourne un nombre qui est la somme des valeurs numériques de chaque nœud d'un ensemble de nœuds donné.
</p>
<h3 id="Syntaxe" name="Syntaxe"> Syntaxe </h3>
<pre class="eval">sum( <i>ensemble-de-nœuds</i> )
</pre>
<h3 id="Arguments" name="Arguments"> Arguments </h3>
<dl><dt><code><i>ensemble-de-nœuds</i></code>
</dt><dd>L'ensemble de nœuds à évaluer. Chaque nœud de l'ensemble est évalué comme s'il était passé à la fonction <a href="fr/XPath/Fonctions/number"><code>number()</code></a>, et la somme des nombres résultants est retournée.
</dd></dl>
<h3 id="Retour" name="Retour"> Retour </h3>
<p>Un nombre.
</p>
<h3 id="Notes" name="Notes"> Notes </h3>
<p><i>(Aucune)</i>
</p>
<h3 id="D.C3.A9finition" name="D.C3.A9finition"> Définition </h3>
<p><a href="http://www.w3.org/TR/xpath#function-sum" class="external">XPath 1.0, section 4.3</a>.
</p>
<h3 id="Support_Gecko" name="Support_Gecko"> Support Gecko </h3>
<p>Supportée.
</p><p><span class="comment">Interwiki languages Links</span>
</p>
<div class="noinclude">
</div>
{{ languages( { "en": "en/XPath/Functions/sum", "ja": "ja/XPath/Functions/sum", "pl": "pl/XPath/Funkcje/sum" } ) }}