Name

local-name — Returns the local part of the expanded name of the argument.

Synopsis

string local-name ( node_obj any );

Description

For given node, it returns local part of the node, i.e. the name of given attribute or element with namespace prefix removed. If the argument is node-set, first node of the node-set will be considered. Empty string is returned if the argument is an empty node-set, a node without name or if the argument is not a node.

If the argument is omitted, context node is used instead as if it is a node-set of one element.

Parameters

node_obj

Node whose name is to be returned

Return Types

String

Examples

Example24.600.

Find all elements whose names start with "ref..." prefix

//*[starts-with(local-name(),'ref')]