fn:namespace-uri-from-QName

fn:namespace-uri-from-QName(
   $arg as xs:QName?
) as xs:anyURI?

Summary

Returns the namespace URI for $arg as an xs:string. If $arg is the empty sequence, the empty sequence is returned. If $arg is in no namespace, the zero-length string is returned.

Parameters
arg A qualified name.

Example

fn:namespace-uri-from-QName(
  fn:QName("http://www.example.com/example", "person") )

=> the namespace URI corresponding to
   "http://www.example.com/example".
Powered by MarkLogic Server | Terms of Use | Privacy Policy