XML technologies / XSLT / XSLT and XPath functions / Alphabetical XSLT and XPath reference / local-name-from-QName

(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:local-name-from-QName

Category:

Functions in connection with qualified identifiers (QNames)

Origin:

XPath 2.0

Return value:

A NCName of xs:NCName type; the local identifier of the QName passed on.

Call/Arguments:

fn:local-name-from-QName($QName)

$QName:

A qualified identifier of xs:QName type whose local name portion shall be determined.

Purpose of use:

The value which is passed on to the function must be of xs:QName type. The function extracts the local name portion from the value passed on and returns it typed as NCName. If the empty sequence is passed on to the function, it returns analogously an empty result sequence.

Function definition:

XPath 1.0:

The function is not available.

XPath 2.0:

fn:local-name-from-QName($arg as xs:QName?) as xs:NCName?

   

 

 

 

back to top