.. _doc-available: ============= doc-available ============= Whether a document is available Description ~~~~~~~~~~~ The fn:doc-available function is a way to avoid the errors returned by the fn:doc function if a document is not available. This function will return true if calling the fn:doc function on the same URI will result in a document node. It will return false if the fn:doc function would not return a document node. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - uri:string() - the URI of the document to check for Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - doc-available('http://www.functx.com/input/order.xml') - true * - doc-available('http://www.functx.com/input/foo.xml') - false See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`doc`.