document()

document()

The document finds a node-set in an external document, or multiple external documents, and returns the resulting node-set.

Syntax

document(URI [,node-set] )

Arguments

URI
An absolute or relative URI of the document to be retrieved. The URI may also include a fragment identifier.
node-set (optional)
An expression pointing to a node-set the external document that should be returned.

Returns

A node-set.

Notes

  • If the URI contains a fragment identifier and that fragment can be identified in the external document, that fragment will be treated as the root in the node-set argument's express