MDN self-hosted library · e01.org

local-name

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

no runnable cells xpath-function upstream source

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

Syntax

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.