The doc() function retrieves an external XML document by means of a URI, and returns the document node at the root of the tree representation of that XML document. This is a simplified version of the document() function available in XSLT.
| Argument | Data Type | Meaning |
|---|---|---|
| uri | xs:string? | The URI of the document to be loaded |
| Result | document-node()? | The document node of the document identified by this URI |