home contribute faq download

FunctX XQuery Functions

fn:local-name-from-QName

The local part of a QName

Google
Webdatypic.com

Description

The fn:local-name-from-QName function returns the local part of an xs:QName. If you want to retrieve the local part of an element or attribute name, you should consider using the fn:local-name function instead; it requires one less step

This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book.

Arguments and Return Type

NameType
$arg xs:QName?
return value xs:NCName?

Examples

XQuery ExampleResults
local-name-from-QName(
   QName('http://datypic.com/prod', 'number'))
number
local-name-from-QName(QName ('', 'number'))
number
local-name-from-QName( () )
()

See Also

fn:local-nameThe local part of a node's name
fn:namespace-uri-from-QNameThe namespace part of a QName
fn:QNameConstructs a QName from a namespace and local part

History

Published OnLast UpdatedContributor(s)
2006-06-272007-02-26W3C, XQuery 1.0 and XPath 2.0 Functions and Operators, http://www.w3.org/TR/xpath-functions/
Datypic XQuery Services

Recommended Reading:

XQuery