XPath/XQuery local-name-from-QName function

Summary

Returns the local part of the supplied QName.

Signature

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

Properties

This function is deterministic, context-independent, and focus-independent.

Rules

If $arg is the empty sequence the function returns the empty sequence.

Otherwise, the function returns an xs:NCName representing the local part of $arg.

Examples

The expression fn:local-name-from-QName(fn:QName("http://www.example.com/example", "person")) returns "person".