.. _namespace-uri-from-QName: ======================== 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. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:string() - Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **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 ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`local-name-from-QName`. * :ref:`resolve-QName`. * :ref:`namespace-uri`. * :ref:`namespace-uri-for-prefix`.