local-name

The local part of a node’s name

Description

The fn:local-name function is useful only for element, attribute and processing instruction nodes. For an element or attribute, this is simply its name, stripped of any prefix it might have.

Parameters

Description

arg:node()

Examples

XPath

Results

local-name($in-xml)

noNamespace

local-name($in-xml//pre:prefixed)

prefixed

local-name($in-xml//unpre:unprefixed)

unprefixed

local-name($in-xml//@pre:prefAttr)

prefAttr

local-name($in-xml//@noNSAttr)

noNSAttr

See Also