Version 5.5.8

Copy-of

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

Child elements

(none)

Parent elements

AtPageCreation , AtPageShipout , Case , Columns , Contents , Element , ForAll , Function , Loop , Otherwise , Record , SaveDataset , SavePages , 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.