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] )

Parameters

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 in the external document that should be returned.

Return value

A node-set.

Description

This function is an XSLT-specific addition to XPath. It is not a part of the core XPath function library.

Specifications

XSLT 1.0 12.1

Gecko support

Supported.