---
title: '<xsl:copy-of>'
slug: Web/XSLT/Element/copy-of
tags:
  - XSLT
  - copy-of
  - リファレンス
  - 要素
translation_of: Web/XSLT/Element/copy-of
---
<p>{{ XsltRef() }}</p>

<p><code>&lt;xsl:copy-of&gt;</code> 要素は、select 属性が出力文書に指定するものすべての深いコピー (子孫ノードを含む) を作成します。</p>

<h3 id="Syntax" name="Syntax">構文</h3>

<pre>&lt;xsl:copy-of select=EXPRESSION /&gt; </pre>

<h3 id="Required_Attributes" name="Required_Attributes">必須属性</h3>

<dl>
 <dt><code>select</code></dt>
 <dd>何をコピーするかを指定する XPath 式を使用します。</dd>
</dl>

<h3 id="Optional_Attributes" name="Optional_Attributes">任意属性</h3>

<p>なし</p>

<h3 id="Type" name="Type">タイプ</h3>

<p>命令は、テンプレート内に表示されます。</p>

<h3 id="Defined" name="Defined">定義</h3>

<p>XSLT, section 11.3.</p>

<h3 id="Gecko_support" name="Gecko_support">Gecko のサポート</h3>

<p>サポート済み</p>