A DITA content reference, or conref, is one of the main content reuse features of DITA. It is a
mechanism for re-using the same content in multiple topics (or even in multiple locations
within the same topic).
For a conref to be created, the source content must have an
id attribute that the conref can reference. Therefore,
creating a conref requires that you add an id to the
content to be reused before inserting a conref into the topic that reuses
the referenced content.
To add an id to a DITA element in a topic, place the cursor on the element
and select
Edit
Attributes from the contextual menu to open the in-place
attribute editor. Enter id as the
Name of the attribute and a value of your choice in the
Value field. You can also use the
Attributes view to enter a value in the
id attribute.
id, since in some cases, Oxygen XML Author Eclipse plugin automatically generates an ID value when the id
attribute is created. To create a content reference (conref), follow these steps:
Reuse
Content action on the main toolbar (or from the DITA
menu or Reuse submenu of the contextual menu). The Reuse
Content dialog box is displayed.id value of the element that you select is automatically added
to the Reference to (conref) field. id value of the last element in your selection.Oxygen XML Author Eclipse plugin also includes support for creating content references with simple copy/paste actions. The copied content must be an entire DITA XML element with an ID attribute. Also, the location in the document where you paste the element must be valid, although as long as the Smart paste and drag and drop option is selected in the Schema-Aware preferences page, if you try to paste it in an invalid location, Oxygen XML Author Eclipse plugin will attempt to place it in a valid location, and may prompt you with one or more choices for where to place it.
conref) using copy/paste actions, follow
these steps:
Paste Special
submenu from the contextual menu.