.. _local-name: ========== local-name ========== The local part of a node's name Description ~~~~~~~~~~~ The fn:local-name function is useful only for element, attribute and processing instruction nodes. For an element or attribute, this is simply its name, stripped of any prefix it might have. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:node() - Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - local-name($in-xml) - noNamespace * - local-name($in-xml//pre:prefixed) - prefixed * - local-name($in-xml//unpre:unprefixed) - unprefixed * - local-name($in-xml//@pre:prefAttr) - prefAttr * - local-name($in-xml//@noNSAttr) - noNSAttr See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`name`. * :ref:`node-name`. * :ref:`local-name-from-QName`.