.. _prefix-from-QName: ================= prefix-from-QName ================= The prefix portion of a QName Description ~~~~~~~~~~~ The fn:prefix-from-QName function returns the prefix associated with a particular qualified name. Note that the prefix associated with a qualified name selected from an input document will be the prefix that is used in that input document, not a prefix used in the query. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:string() - Examples ~~~~~~~~ .. list-table:: :widths: 25 25 50 :header-rows: 1 * - **XPath** - **Results** - **Explanation** * - prefix-from-QName(node-name($in-xml)) - () - * - - - .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - prefix-from-QName(node-name($in-xml)) - () * - - See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`local-name-from-QName`. * :ref:`namespace-uri-from-QName`. * :ref:`namespace-uri-for-prefix`. * :ref:`in-scope-prefixes`.