.. _in-scope-prefixes: ================= in-scope-prefixes ================= The prefixes that are in scope for an element Description ~~~~~~~~~~~ The fn:in-scope-prefixes function returns a sequence of prefixes (as strings) that are used in the in-scope namespaces for the $element element. The results include a zero-length string if there is a default namespace declaration. It also always includes the xml prefix, which is built into the XML recommendation. Note that the function uses in-scope namespaces, as opposed to statically known namespaces. For example, it does not necessarily include all the prefixes declared in the prolog, if they are not used by $element or one of its ancestors. . .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - element:element() - Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - in-scope-prefixes($in-xml) - ('', 'prod2', 'xml') See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_namespaces-in-use`. * :ref:`namespace-uri-for-prefi`.