15. copyAsInclusion
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 15. copyAsInclusion

Parameter syntax:

    [ '[implicitElement]' ]?

Copies explicitly selected nodes (or implicitly selected element if the `[implicitElement]` option is used) to system clipboard. Each node copied to the clipboard is marked as being a reference rather than plain XML data.

Command `copyAsInclusion` will not work when one of the selected nodes is a reference or is an inclusion directive (e.g. an `xi:include` element).

Command `copyAsInclusion` cannot work unless the following conditions are met:

- Selected nodes are contained in a document associated to one or more inclusion schemes (e.g. XInclude, DITA conref).

- One of these inclusion schemes is capable of copying selected nodes as an inclusion.

Example:

    copyAsInclusion [implicitElement]

Commands copyAsInclusion (generally bound to keystroke Shift+Ctrl+C) and paste (generally bound to keystroke Ctrl+V) are used to compose modular documents, see the corresponding tutorial section in the User's Guide.

Prev | Up | Next
14. copy | Home | 16. copyChars