.. _functx_distinct-element-names: ============================= functx:distinct-element-names ============================= The distinct names of all elements in an XML fragment Description ~~~~~~~~~~~ The functx:distinct-element-names function returns the distinct set of element names that exist in $nodes or among the descendants of $nodes. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - nodes:node() - the root(s) to start from Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:distinct-element-names($in-xml) - ('authors', 'author', 'fName', 'lName') * - functx:distinct-element-names($in-xml/author[1]) - ('author', 'fName', 'lName') Depends On ~~~~~~~~~~ * :ref:`functx_path-to-node`. See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_distinct-attribute-names`. * :ref:`functx_distinct-element-paths`.