fn:get-local-name-from-QName

Return local part of QName argument.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

fn:get-local-name-from-QName(QName? $qName) => string?

Description

This function returns a string representing the local name of $qName. If $qName is the empty sequence, the function returns the empty sequence.

Argument

$qName

value of type xs:QName

Example

  • Retrieve local name from QName http://company.dot.com/namespaces/corporate:

    get-local-name-from-QName(expanded-QName("http://company.dot.com", "namespaces/corporate"))

    This query returns the string namespaces/corporate.