If the first argument is a node set:
Each node in the set is processed by an implicit call to document().
The first argument is the node's value via string()
The second argument is the node (so relative URI values work).
If the URI value is relative, the base URI is the node set in context:
If the there is only one argument and it is a node set, then the base URI is that of the node being processed.
If the there is only one argument and it is a not a node set, then the base URI is that of the stylesheet.
If the there are two arguments, the base URI of the second is used.
An example: docfunc.xsl example.xml one.xml two.xml