namespace-uri-from-QName

The namespace part of a QName

Description

The fn:namespace-uri-from-QName function returns the namespace part of an xs:QName. If you want to retrieve the namespace of an element or attribute name, you should consider using the fn:namespace-uri function instead; you cannot pass element or attribute nodes directly to this function.

Parameters

Description

arg:string()

Examples

XPath

Results

namespace-uri-from-QName(QName (’http://datypic.com/pre’, ‘prefixed’))

http://datypic.com/pre

namespace-uri-from-QName(QName (‘’, ‘unprefixed’))

zero-length xs:anyURI value

namespace-uri-from-QName( () )

()

See Also