My xquery script opens several files. One of the files is sometimes missing. I need to test whether the file exists before I try to open it. (something like -f in bash or perl).
Is it possible?
My xquery script opens several files. One of the files is sometimes missing. I need to test whether the file exists before I try to open it. (something like -f in bash or perl).
Is it possible?
Use this standard XPath 2.0 function:
doc-available(yourURL)