<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.QNameFromKey.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.QNameFromKey</api:function-name><api:suggest>xdmp.qnamefromkey</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>qnamefromkey</api:suggest><api:function-link mode="xquery" fullname="xdmp:QName-from-key">/apidoc/8.0/xdmp:QName-from-key.xml</api:function-link><api:function mode="javascript" name="QNameFromKey" type="builtin" lib="xdmp" category="Extension" subcategory="Extension" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.QNameFromKey"><api:summary>
   Construct a QName from a string of the form "{namespaceURI}localname".
   This function is useful for constructing Clark notation
   parameters for the <a href="./xdmp:xslt-eval" xmlns="http://www.w3.org/1999/xhtml">xdmp:xslt-eval</a>
   and <a href="./xdmp:xslt-invoke" xmlns="http://www.w3.org/1999/xhtml">xdmp:xslt-invoke</a>
   functions.
</api:summary><api:params><api:param name="key" type="xs:string"><api:param-description>
  The string from which to construct a QName.
  </api:param-description><api:param-name>key</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>xs.QName</api:return><api:usage>
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
// returns the Clark notation form of the QName

xdmp.keyFromQName(xs.QName("fn:foo"));
=&gt;
{http://www.w3.org/2005/xpath-functions}foo
</pre></api:example></api:function></api:function-page>