Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XSLT document() Function

XSLT document() Function


XSLT Function Reference Object Complete XSLT function reference


Definition and Usage

The document() function is used to access nodes in an external XML document. The external XML document must be valid and parsable.

One way to use this function is to look up data in an external document. For example, suppose we want to find the Celsius value corresponding to a Fahrenheit value; we access a document containing precomputed values:


Syntax

node-set document(object,node-set?)

Parameters

Parameters Description
object Required. Defines the URI of the external XML document.
node-set Optional. Used to resolve relative URIs.

XSLT Function Reference Object Complete XSLT function reference