fn:namespace-uri-from-QName
Returns the namespace URI part of the supplied QName.
Signature
fn:namespace-uri-from-QName($arg as xs:QName?) as xs:anyURI?
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:anyURI
representing the namespace URI
part of $arg
.
If $arg
is in no namespace, the function returns the zero-length
xs:anyURI
.
Examples
The expression fn:namespace-uri-from-QName(fn:QName("http://www.example.com/example",
"person"))
returns xs:anyURI("http://www.example.com/example")
.