# Elementname: `Copy-of`

## Description

Replace this element by the copy of the selection as an element structure. You can use it to construct more complex data structures.

Allowed attributes: select

Child elements: (none)

Parent elements: Case, Element, ForAll, Loop, Otherwise, SaveDataset, SetVariable, Table, Tablefoot, Tablehead, Td, Text, Textblock, Tr, Until, While

### Attributes

select (XPath Expression)

  The selection (most likely a variable) that is to be copied.

## Example

    <SetVariable variable="myparagraph">
      <Paragraph>
        <Value select="@name"/><Value>, Symbol=</Value><Value select="@symbol"/>
      </Paragraph>
    </SetVariable>
    <PlaceObject>
      <Textblock>
        <Copy-of select="$myparagraph"/>
      </Textblock>
    </PlaceObject>

is the same as

    <PlaceObject>
      <Textblock>
        <Paragraph>
          <Value select="@name"/><Value>, Symbol=</Value><Value select="@symbol"/>
        </Paragraph>
      </Textblock>
    </PlaceObject>

with the exception that the values of `@name` and `@symbol` can be evaluated before the text gets output.

## See also

Value, XPath expressions, SetVariable

# Commands

- A
- Action
- AddSearchpath
- AtPageCreation
- AtPageShipout
- AttachFile
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Circle
- Color
- Column
- Columns
- Compatibility
- Contents
- Copy-of
- DefineColor
- DefineFontalias
- DefineFontfamily
- DefineTextformat
- Element
- Fontface
- ForAll
- Frame
- Grid
- Group
- Groupcontents
- HSpace
- Hyphenation
- I
- Image
- Include
- Initial
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- NoBreak
- Ol
- Options
- Otherwise
- Output
- Overlay
- PDFOptions
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- Position
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- SetGrid
- SetVariable
- SortSequence
- Span
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Trace
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

Version: 3.2.0 | Start page | Command reference | Other language: German