.. _functx_min-string: ================= functx:min-string ================= The minimum of a sequence of values, treating them like strings Description ~~~~~~~~~~~ The functx:min-string function returns the minimum of the values in $strings. It differs from the built-in fn:min function only in treats values of all types like strings. The fn:min function, by contrast, treats untyped and numeric values like numbers (and an error is raised if they are not numbers). .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - strings:string() - the sequence of strings Examples ~~~~~~~~ .. list-table:: :widths: 25 25 50 :header-rows: 1 * - **XPath** - **Results** - **Explanation** * - functx:min-string( $in-xml/* ) - a - Calling the fn:min function instead would have raised an error. * - functx:min-string( (100,25,3) ) - 100 - .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:min-string( $in-xml/* ) - a * - functx:min-string( (100,25,3) ) - 100 See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`min`. * :ref:`functx_min-non-empty-string`. * :ref:`functx_min-determine-type`. * :ref:`functx_max-string`.