aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xpath/functions/normalize-space/index.md
blob: 90ce9154c5227faa5ea5c97bc148c27a95c90599 (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
---
title: normalize-space
slug: Web/XPath/Functions/normalize-space
tags:
  - Référence_XSLT
translation_of: Web/XPath/Functions/normalize-space
original_slug: Web/XPath/Fonctions/normalize-space
---
{{ XsltRef() }}

La fonction `normalize-space` supprime les espaces de début et de fin d'une chaîne et remplace les successions d’espaces par une seule puis retourne la chaîne résultante.

### Syntaxe

    normalize-space(chaîne )

### Arguments

- `chaîne`
  - : La chaîne à normaliser.

### Retour

La chaîne nomalisée.

### Définition

[XPath 1.0, section 4.2](http://www.w3.org/TR/xpath#function-normalize-space).

### Support Gecko

Supportée.