Documentation Center

Graphic templates

Graphic templates are sections in TemplateSpecification.xml that affect the behavior of Authoring Bridge.

When a user inserts an element with a name that matches the name attribute of one of the following templates, the Insert graphic browse dialog will be shown. When a user selects a graphic in this dialog, the content of the document fragment will be inserted in the target document in which selecteditem:href will be replaced by the logical ID of the selected graphic.

For Example:

<template id="Dita.Fig.Template" name="fig">
  <documentFragment>
    <fig>
      <title>selecteditem:text</title>
      <image href="selecteditem:href">
        <alt>selecteditem:text</alt>
      </image>
    </fig>
  </documentFragment>
</template>