fn:node-name

node-name() ➔ xs:QName?

Returns the name of the context node, as a QName value (that is, a namespace URI plus local name).

There are no arguments

Result

xs:QName?

node-name($arg as node()?) ➔ xs:QName?

Returns the name of the given node, as a QName value (that is, a namespace URI plus local name).

Arguments

 

$arg

node()?

The node whose name is required

Result

xs:QName?

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XPath 3.1 Functions and Operators

Saxon availability

Available in all Saxon editions.

Notes on the Saxon implementation

The single-argument version of this function is new in XPath 3.0, and is first implemented in Saxon 9.3, provided that support for XPath 3.0 is enabled.