.. _functx_leaf-elements: ==================== functx:leaf-elements ==================== All XML elements that don't have any child elements Description ~~~~~~~~~~~ The functx:leaf-elements function returns the elements that do not have any element children that are descendants of (or the same as) the root. Leaf elements may have attributes, and may contain text, processing instructions and/or comments. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - root:node() - the root Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:leaf-elements($in-xml) - Kate Jones John Doe * - functx:leaf-elements($in-xml/author[1]) - Kate Jones