11. drag-source

drag-source(key, value, ..., key, value)

Inserts a button in generated content which can be used to execute a command (see Chapter 6, Commands written in the Java™ programming language in XMLmind XML Editor - Commands). Identical to command-button except that:

Example:

section[id] > title:after {
    display: inline;
    content: drag-source(icon, icon(right-link), 
                         command, "dragHref");
}

where command dragHref is:

  <command name="dragHref">
    <macro xmlns:hrefu="java:com.xmlmind.xmleditapp.dita.HrefUtil">
      <sequence>
        <command name="selectNode" parameter="parent section" />
        <get expression="hrefu:get-href($selectedElement)" />
      </sequence>
    </macro>
  </command>