fn:doc-available
Returns true if a document with the given URI can be successfully loaded, false otherwise.
doc-available($source as xs:string?, $options as map(*)?:={}) ➔ xs:boolean
Arguments | ||||
| $source | xs:string? | The URI of the required document (relative to the static base URI) | |
| $options | map(*)? | := {} | Options map |
Result | xs:boolean | |||
Namespace
http://www.w3.org/2005/xpath-functions
Links to W3C specifications
XPath 3.1 Functions and Operators
XPath 4.0 Functions and Operators
Saxon availability
Available in XPath 2.0, XSLT 2.0, XQuery 1.0, and later versions. Available in all Saxon editions. Available for all platforms.
Notes on the Saxon implementation
Saxon effectively executes the doc() function and returns true if it
succeeded; as a side-effect, the document will be available in memory for use when the
doc() function is subsequently called with this URI.
A user-supplied URIResolver is invoked in the same way as for the
doc() function.