Back to Content

local-name

files/en-us/web/xml/xpath/reference/functions/local-name/index.md

latest615 B
Original Source

The local-name function returns a string representing the local name of the first node in a given node-set.

Syntax

plain
local-name( [node-set] )

Parameters

  • node-set (optional)
    • : The local name of the first node in this node-set will be returned. If this argument is omitted, the current context node will be used.

Return value

A string.

Description

Specifications

XPath 1.0 4.1

Gecko support

Supported.