You can reference external documents using HTTP. In the code snippet below, we invoke fn:doc()
on an external resource.
fn:doc("https://dl.dropbox.com/u/1487285/books.xml")
You can link to external modules and schemas using location hints. In the code snippet below, we import the
module with namespace URI http://www.example.com/fibonacci
located at https://dl.dropbox.com/u/1487285/fib.xq
import module namespace fib = "http://www.example.com/fibonacci" at "https://dl.dropbox.com/u/1487285/fib.xq"; fib:fib(90)