--- title: document slug: Web/XPath/Functions/document tags: - XSLT - XSLT_Reference translation_of: Web/XPath/Functions/document ---

{{ XsltRef() }}

documentは、外部ドキュメントまたは複数の外部ドキュメントの中からノード集合を見つけ、結果のノード集合を返します。

構文

document(URI [,node-set] )

引数

URI
取得されるドキュメントの絶対 URI または相対 URI。URI はまた、フラグメント識別子を含むもあります。
node-set (任意)
ノードを指す式。返却する外部ドキュメントを設定します。

戻り値

ノード集合

注記

この関数は XPath への XSLT 固有の追加です。コア XPath 関数ライブラリの一部ではありません。

定義

XSLT 1.0 12.1

Gecko のサポート

サポート済み