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.
Parameters |
Description |
---|---|
uri:string() |
the URI of the document to check for |
Examples
XPath |
Results |
---|---|
doc-available(’http://www.functx.com/input/order.xml’) |
true |
doc-available(’http://www.functx.com/input/foo.xml’) |
false |
See Also
doc.