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

La fonction `local-name` retourne une chaîne représentant le nom local du premier nœud d'un ensemble de nœuds donné.

### Syntaxe

    local-name( [ensemble-de-nœuds] )

### Arguments

- `ensemble-de-nœuds` (optionnel)
  - : Le nom local du premier nœud de cet ensemble de nœuds sera retourné. Si cet argument est omis, le nœud de contexte courant sera utilisé.

### Retour

Une chaîne.

### Notes

- Le nom local est la partie locale d'un [nom étendu](http://www.w3.org/TR/xpath#dt-expanded-name).

### Définition

[XPath 1.0, section 4.1](http://www.w3.org/TR/xpath#function-local-name).

### Support Gecko

Supportée.