name

The qualified name of a node, as a string

Description

The fn:name function returns the qualified name of a node, as a string. If the node’s name is not in a namespace, this function returns the local part of the name, with no prefix. The resulting string is then the namespace prefix, plus a colon (“:”), plus the local part. If the name is associated with the default namespace, the resulting name may not be prefixed.

Parameters

Description

arg:node()

Examples

XPath

Results

name($in-xml)

noNamespace

See Also