2.3. Custom tool bar

This customization adds three buttons to the stock DocBook tool bar. See configuration element toolBar.

      .
    definitions of macro-commands docb.startImageViewer
    and docb.startHTMLViewer  
      .
      .

  <command name="docb.editDocument">
    <macro trace="false">
      <sequence>
        <get context="$implicitElement/@url" expression="resolve-uri(.)" />
        <command name="XXE.edit" parameter="%_" />
      </sequence>
    </macro>
  </command>

  <toolBar>
    <insert />
    <separator />

    <button toolTip="View Image in Xv" icon="mydocbook_icons/xv.gif">
      <command name="docb.startImageViewer" />
    </button>
    <button toolTip="View HTML in Web Browser" icon="mydocbook_icons/mozilla.gif">
      <command name="docb.startHTMLViewer" />
    </button>
    <button toolTip="Edit Document" icon="mydocbook_icons/edit.gif">
      <command name="docb.editDocument" />
    </button>
  </toolBar>

Note the insert element inside the toolBar element which is used to insert all the tool bar buttons specified in the stock DocBook configuration before the new View Image in Xv button.