Loading TOC...

MarkLogic Server 11.0 Product Documentation
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".

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.