XSLT and XPath function reference in alphabetical order

(Excerpt from “XSLT 2.0 & XPath 2.0” by Frank Bongers, chapter 5, translated from German)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

fn:node-name

Category:

Node names, identifiers and URI information

Origin:

XPath 2.0

Return value:

A QName in expanded form which consists of a namespace URI portion and a local identifier.

Call/Arguments:

fn:node-name($node)

$node:

Any node whose expanded QName shall be determined.

Purpose of use:

The function returns the QName of the node on which it is applied in expanded form. Therefore, it is not possible to find out the namespace prefix of the node in this way, but only the namespace URI connected with it.

If the node is a nameless node, which means a document node, a text node or a comment node, the function returns the empty sequence. The same happens if the empty sequence is passed on to the function as argument.

Function definition:

XPath 1.0:

The function is not available.

XPath 2.0:

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

   

<< back next >>

 

 

 


Copyright © Galileo Press, Bonn 2008
Printing of the online version is permitted exclusively for private use. Otherwise this chapter from the book "XSLT 2.0 & XPath 2.0" is subject to the same provisions as those applicable for the hardcover edition: The work including all its components is protected by copyright. All rights reserved, including reproduction, translation, microfilming as well as storage and processing in electronic systems.


Galileo Press, Rheinwerkallee 4, 53227 Bonn, Germany